Developing a simple api with go and mysql.
First, you need to install the dependencies
go mod download
Then, you need to create a .env file
cp .env.example .env
Finally, you can run the project
go run main.go start
note: You can use the "seed" and "migrate" arguments.
If you want to use air for hot reload, you can run
air init
After that, you can add "start" argument to the .air.conf file
[build]
args_bin = ["start"]
...
And run
air
docker-compose up --build