This repo exists to be used as a template for new projects using nest-js. It comes with:
- Prometheus Metrics (and interceptor for response time)
- Postgres integration with typeORM
- Redis integration
- Basic Lint
- Tests structure (and sqlite as test-util)
- .gitlab-cy.yml with build and test pipeline
- Log level configuration
- Basic configuration file for env vars
- Swagger
- Docker compose (for local development)
- Docker
- Node (16.16.0+)
- NPM (8.11.0+)
$ npm install
$ npm run deps
Create .env
file in root and populate with variables found under src/config/configuration.ts
# Dev
$ npm run start:dev
# Prod
$ npm run start:prod
# unit tests
$ npm run test
# end-to-end
$ npm run test:e2e
# tests with coverage
$ npm run test:cov