$ npm install
# Prepare Husky
$ npm run prepare# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod$ docker compose up --buildTo generate migrations we need to create folder called migrations if does not exists in the module folder. After the entity definition or update it is necessary to generate the migration with the following command:
$ npm run migration:generate <path-to-migrations-folder>/<name>-migrationTo generate the migration inside the docker container:
$ docker compose exec api npm run migration:generate <path-to-migrations-folder>/<name>-migrationTo apply the pending migrations in the database is necessary to run the followin command:
$ npm run migration:runTo generate the migration inside the docker container:
$ docker compose exec api npm run migration:run# unit tests
$ npm run test
# test coverage
$ npm run test:coverage