A simple use case parking app written with golang this repo still work in progress, so i'll put in the board to track this current repo progress
- first you need a mysql docker container, all you have to do is compose up the mysql then it will run at port 4444, open your terminal and run
docker compose upin the root of the project
- copy the .env-example to .env, the env is exactly same as docker mysql environment
- run migration in your machine, if you use docker compose, you just need to run this command
migrate -path db/migrations -database "mysql://root:root@tcp(127.0.0.1:4444)/parkingdb?query" upthen run
go run main.gothats it have a nice code 😉
