Nest 基础开发模板
- 增加ownerGame表,订单表多对一关联该表
- [x] Typescript
- [x] Nest
- [x] Swagger
- [x] Env Config
- [x] nestjs-session
- [x] global response interceptor
- [x] class-validator
$ npm install
# development
$ npm run start
# watch mode
$ npm run dev
# production mode
# npm install -g pm2
# or
# yarn global add pm2
$ npm run pm2
# or
$ npm run prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is MIT licensed.
开发环境自动同步数据库架构,生产数据库则在实体变更后生成迁移脚本
yarn typeorm migration:create -n [entitiesName]
yarn typeorm migration:generate -n [entitiesName]
yarn typeorm migration:run
yarn typeorm migration:revert
yarn typeorm schema:sync
yarn typeorm schema:drop