This starter pack includes:
- Nestjs 8
- TypeORM (postgres)
- Swagger OpenAPI (exposed by default) with CLI plugins enabled
- Husky and lint-staged for pre-commit hook
- Docker ready
npx degit https://github.com/fevernova90/nestjs-starter-pack your-app-name
$ npm install
# 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
# Generate migration files based on entities
$ npm run migration:generate
# Run the migration on database (db URI in ormconfig.ts)
$ npm run migration:run
Inspect and change these files:
- .dockerignore
- Dockerfile
- test-local-docker.sh
- deploy-staging.sh
- deploy-production.sh
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Nest is MIT licensed.