/nestjs-learn

nestjs学习

Primary LanguageTypeScript

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

phper从零开始学习typescript && nestjs 框架全记录

Installation

$ pnpm i

$ pnpm typeorm:run-migrations # run migrations

Running the app

# watch mode
$ pnpm start:dev

# debug mode
$ pnpm start:debug

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm test

# e2e tests
$ pnpm test:e2e

# test coverage
$ pnpm test:cov

Features

  • 配置文件
  • 日志系统
  • 异常捕获Filter
  • 自定义装饰器
  • jwt鉴权
  • 异步队列
  • typeorm(migrate&&relations)
  • crud组件
  • 单元测试
  • 接口文档
  • 其他
    • e2e测试用例自动开启事务
    • 接口文档CommonResponseDto

License

Nest is MIT licensed.