Go-User-System

User System created with Golang. It's really fun with Golang!! πŸ™‹πŸ™‡πŸ™ŒπŸ€πŸ‘€

Stars
26

Golang User System

User System created with Golang. It's really fun with Golang. Don't believe me? Go ahead & use it by yourself!!

Updated version

Visit this for single-page user-system with React & Golang!!

Requirements

  1. Make sure you keep this project inside src/ of your Golang project folder.
  2. Following packages should be installed.
    1. httprouter
    2. negroni
    3. checkmail
    4. MySQL driver
    5. bcrypt
    6. sessions
    7. godotenv

Usage

  1. First install all the dependencies.
npm install 
OR 
yarn
  1. Open PHPMyAdmin, create a db & import db.sql.
  2. Create a .env file & insert the following code. Repalce values with yours.
PORT=PORT (default= 1100)  [STRING]
DB_USER=DB USER [STRING]
DB_PASSWORD=DB PASSWORD [STRING]
DB=DB YOU JUST CREATED [STRING]
  1. My root folder name is Go-User-System, 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 it.

    go run main.go
    
  3. Run the app in browser.

    localhost:[PORT] PORT=1110 (By default)
    
  4. Enjoy!!