- Install tools
$ make setup
- Fill .env
$ cp .env.sample .env
$ vim .env
- Add below hosts to
/etc/hosts
127.0.0.1 account.local.eitan-flash.com
127.0.0.1 api.local.eitan-flash.com
127.0.0.1 local.eitan-flash.com
- Run local servers and DB on docker
$ make run
- Run everything on docker
$ make run-dc
-
Edit schema file
-
Dry run migration
$ make db-migrate-dry
- Apply migration
$ make db-migrate
※ make db-migrate
will also regenerate Go models.