Execute npm run run:pg-docker
and create .env
file with DATABASE_URL=postgres://postgres:docker@localhost:5432/postgres
Run
# create tables
npm run migrate
# populate tables
npm run seed
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Knex / Objection / Postgres integration is inspired by https://www.thisdot.co/blog/reducing-mental-fatigue-nestjs-objectionjs