Copy .env.EXAMPLE
to .env.dev
for development
$ yarn
$ yarn dev
$ yarn lint
$ yarn build
To run all tests:
$ yarn test
To run all unit tests:
$ yarn test:unit
All tables can be created by setting DB_SYNCHRONIZE = true
in .env.dev
, or you can run migrations.
To generate a migration you can run the following command:
$ yarn migrations:generate src/migrations/MIGRATION_NAME
To run all pending migrations:
$ yarn migrations:run
To revert the last applied migration:
$ yarn migrations:revert