A nestjs demo project. Base on Nest framework.
$ pnpm install
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov
# 1. 生成迁移脚本
$ pnpm typeorm migration:create src/migrations/CoffeeRefactor
# 2. 修改生成的迁移脚本 !!!
# 3. 打包代码
$ pnpm build
# 4. 运行迁移
$ pnpm typeorm migration:run -d data-source.ts
# 修改了schema之后 生成迁移脚本
$ pnpm typeorm migration:generate src/migrations/CoffeeRefactor -d data-source.ts