Skip to content

A mini social-network created with the awesome Iris Golang💖💖!!

License

Notifications You must be signed in to change notification settings

iris-contrib/Iris-Mini-Social-Network

 
 

Repository files navigation

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 have installed Go and Iris.
  2. Following packages should be installed.
    1. Iris
    2. checkmail
    3. MySQL driver
    4. bcrypt
    5. sessions
    6. godotenv

Usage

  1. Create a MySQL database & import the db.sql file.

  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 💖💖!!

About

A mini social-network created with the awesome Iris Golang💖💖!!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 35.7%
  • HTML 27.5%
  • SCSS 24.6%
  • JavaScript 11.9%
  • Shell 0.3%