$ yarn
# development
$ yarn start
# watch mode
$ yarn start:dev
### 使用webpack缓存可以把命令换成:"start:dev": "nest build --webpack --webpackPath webpack-hmr.config.js --watch",
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
# 创建一个模块
nest g res order --no-spec
# 创建一个控制器和该控制器的单元测试文件
nest g co posts
# 生成局部中间件
nest g mi counter
# module
nest g module gir
# controller
nest g controller girl --no-spec
# service**
nest g service girl --no-spec
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 - hayden
- Website - https://nestjs.com
Nest is MIT licensed.