Skip to content

ncornag/nestjs-starter

Repository files navigation

Description

Nest framework TypeScript starter repository.

Includes

  • Pino logger
  • Config service with checks
  • MongoDB for persistence
  • Use of ts-results for function results
  • Helmet for HTTP security
  • Swagger for API documentation
  • Typebox for type safe validations
  • Passport for Authentication & Authorization
  • JWT tokens based scopes

Project setup

$ npm install

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.