ILUVECOFFEE
A nestjs demo project. Base on Nest framework.
Installation
$ pnpm install
Running the app
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
Test
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov
typeorm migration
# 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