User System created with Golang. It's really fun with Golang. Don't believe me? Go ahead & use it by yourself!! ๐ป๐ค๐
Visit this for single-page user-system with React & Golang!!
- Make sure you keep this project inside
src/
of your Golang project folder. - Following packages should be installed.
- First install all the dependencies.
npm install
OR
yarn
- Open PHPMyAdmin, create a db & import
db.sql
. - 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]
-
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. -
Now run it.
go run main.go
-
Run the app in browser.
localhost:[PORT] PORT=1110 (By default)
-
Enjoy!!