Skip to content

podanypepa/fiber-gorm-mysql-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fiber-gorm-mysql-backend

Golang backend with Fiber, Gorm and MySQL

Rushed in a few hours for a colleague.

Run on local with MySQL connection config

If You have MySQL server somewhere MySQL in internet or on Your machine.

go build -o backend
DBHOST=localhost DBPORT=3306 DBUSER=root DBPASSWORD=password DBNAME=todo backend

Run in Docker from docker-compose.yaml

Run locally together backend and MySQL.

docker-compose build
docker-compose up -d

Test

curl http://localhost:8080
# {"Status":"ok","TS":"2022-04-20T09:49:07.665761043Z"}

About

Golang backend with Fiber, Gorm and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published