基于 NestJS + MySQL + TypeORM 的 Node.js 服务端项目。
核心功能:
- JWT认证
- RBAC授权
- TypeORM
- winston日志
- Docker就绪 6.自动生成的Swagger
开发环境 macOS 10.15.4 Node.js v14.15.3 MySQL 8.0.12
部署环境 腾讯云 CentOS 7.2 64位
此项目主要用于学习使用 TypeScript 开发 Node.js 项目,不用于任何商业用途。
需要
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covtodo swagger ui