All microservices are stored in separate directory. For go services, they all use the same go.mod file,
but separate main.go files and Dockerfiles.
- Go to the service's directory (e.g.
/api) - Rename
config/config.example.ymltoconfig/config.ymland fill in missing configurations. - Run
$ go run main.goDon't forget to copy ./migrations/migrate.sh -> ./migrations/migrate.local.sh and edit the
credentials to match your database.
$ migrate create -ext sql -dir migrations -seq <migration_name>Linux:
$ ./migrations/migrate.local.shWindows:
$ ./migrations/migrate.local.ps1