Check out the blog post this repo comes from for a full walkthrough of this code.
$ npm install
Copy the variables in the example and update them:
$ copy .env.example .env
Running the NestJS app:
$ npm run start:dev
Running the Postgres database:
$ docker compose up -d
After your local Postgres server is up and running, you'll need to run database migrations.
To do this, run the following command:
$ npm run migrate
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov