GithubHelp home page GithubHelp logo

ptzagk / iris-mini-social-network Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iris-contrib/iris-mini-social-network

0.0 0.0 0.0 2.73 MB

A mini social-network created with the awesome Iris Golang๐Ÿ’–๐Ÿ’–!!

Home Page: https://github.com/kataras/iris

License: MIT License

JavaScript 10.88% Go 33.26% CSS 22.55% HTML 25.17% TSQL 8.14%

iris-mini-social-network's Introduction

Iris-Mini-Social-Network

A mini Social-Network created with the awesome Iris Golang๐Ÿ’–๐Ÿ’–!!

This is a fork of: https://github.com/yTakkar/Go-Mini-Social-Network.

Created by @kataras as an example on converting a web app from gin to iris. The structure is the same as the original repository, nothing changed in order to be easier to watch the changes between them.

Quick Links

  1. Screenshots
  2. Requirements
  3. Usage

Screenshots

alt text alt text alt text alt text alt text alt text alt text

Requirements

  1. Make sure you keep this project inside src/ of your Golang project folder ($GOPATH).
  2. Following packages should be installed.
    1. iris
    2. checkmail
    3. MySQL driver
    4. bcrypt
    5. sessions
    6. godotenv

Usage

  1. Open PHPMyAdmin or any other db tool, create a db & import db.sql.

  2. Install all the dependencies.

# with npm
npm install

# or with yarn
yarn
  1. Create a .env file & insert the following code. Replace values with yours!!
PORT=YOUR PORT [STRING]
SESSION_HASH_SECRET=SESSION_HASH_KEY [STRING]
SESSION_BLOCK_SECRET=SESSION_BLOCK_KEY [STRING]
DB_USER=DB_USER [STRING]
DB_PASSWORD=DB PASSWORD [STRING]
DB=DB YOU JUST CREATE [STRING]

See the default .env file to see an example of it

  1. My root folder name is Iris-Mini-Social-Network, if yours is different then go ahead & change it as it used for imports. It can be done easily by searching the whole project.

  2. Now run the app.

npm start [OR] yarn start
  1. Run the app in browser.
localhost:[PORT]
  1. Enjoy ๐Ÿ’–๐Ÿ’–!!

iris-mini-social-network's People

Contributors

kataras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.