Golang backend with Fiber, Gorm and MySQL
Rushed in a few hours for a colleague.
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 locally together backend
and MySQL
.
docker-compose build
docker-compose up -d
curl http://localhost:8080
# {"Status":"ok","TS":"2022-04-20T09:49:07.665761043Z"}