Skip to content

Latest commit

 

History

History
35 lines (34 loc) · 613 Bytes

Readme.md

File metadata and controls

35 lines (34 loc) · 613 Bytes

Developing a simple api with go and mysql.

Installation for development

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.

Hot reload

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

docker-compose up --build