A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Nest framework TypeScript starter repository.
$ 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
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.
https://juejin.im/post/5d4bb09af265da03f233b92c https://juejin.im/user/5a5ff3e16fb9a01c9526215f/posts
创建模块 nest g module cats
创建控制器 nest g controller cats
创建服务(供应者) nest g service cat
创建过滤器 nest g filter cat
ctx 接收 request 和 response 对象和管道函数 next() 若没有结束request-response循环,即必须调用next函数将控制权交给下一个中间函数
- 20200720 18:14 看到继承