NestJS CLI
npm -g @nestjs/cli
nest new [项目名]
npm run start:dev
CLI 常用命令
nest g co [模块名] # controller
nest g mo [模块名] # module
nest g s [模块名] # service
nest g res [模块名] # 一次生成以上
--flat # 不创建子目录
--no-spec #不创建测试文件
-d #不真实创建
npm -g @nestjs/cli
nest new [项目名]
npm run start:dev
nest g co [模块名] # controller
nest g mo [模块名] # module
nest g s [模块名] # service
nest g res [模块名] # 一次生成以上
--flat # 不创建子目录
--no-spec #不创建测试文件
-d #不真实创建