You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hemli API uses Postgresql as main database source. In order to have an up and running postgres DB make sure you have docker installed on your local machine.Run following command to have postgres container up and running.
$ docker-compose up -d
Once database is up and running, run migrations to have required tables created.
Please note: in order to run sql-migrate and all migration commands, you need to have pre-installed CLI tools. More information and instalation instructions check in official documentation.
$ make migrate-up
similarly you can run following command to rollback all migrations
$ make migrate-down
In order to create a new migration file, run following command in your terminal.