Skip to content

k-yomo/eitan

Repository files navigation

eitan

Architecture

architecture

Setup

  1. Install tools
$ make setup
  1. Fill .env
$ cp .env.sample .env
$ vim .env
  1. 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 servers

  • Run local servers and DB on docker
$ make run
  • Run everything on docker
$ make run-dc

DB schema migration in local

  1. Edit schema file

  2. Dry run migration

$ make db-migrate-dry
  1. Apply migration
$ make db-migrate

make db-migrate will also regenerate Go models.