A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# via docker-compose
$ docker-compose up -d
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# 1. Overview
├───src
│ ├───database # Database provider files, ex: mongodb, mysql
│ ├───decorator # Decorator files, ex: @Roles
│ ├───guard # Guard files, ex: JwtAuthGuard
│ ├───middleware # Middleware files, ex: Logger
│ ├───module # Source files, internal and external modules
│ │ ├───auth
│ │ ├───todo # A sample todo modules include
│ │ └───user
│ ├───script # Script files to run other process built with NestJs also
│ └───shared # Enum, Constant, Helper.. to share across the system
└───test
# 2. Sample module details
.
├───module
│ ├───todo
│ │ todo.controller.ts
│ │ todo.dto.ts
│ │ todo.enum.ts
│ │ todo.interface.ts
│ │ todo.module.ts
│ │ todo.providers.ts
│ │ todo.repository.ts
│ │ todo.schema.ts
│ │ todo.service.ts
- Database: mongoose.
- Passport.
- Logging: Winston.
- Config.
- Swagger.
- Eslint
- Prettier
- Docker And Docker Compose.
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.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.