Skip to content

dyfun/memorization-app

Repository files navigation

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

About

Golang Api for Memorization App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published