Fiber + Gorm
Setting environment variables
Creating .env
file to compose environment variables.
.env
DB_HOST=
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_PORT=
How to run
-
Make sure your DB server is running (MySQL)
-
build binary file
$ go build -o server
-
run binary file
$ ./server