nest-01

70 阅读1分钟

1.全局安装 npm -g @nest/cli

2.新建项目 nest new xxx 3.运行项目 cd xxx npm run start 4.目录结构

5.基本概念

controller、spec、module、service、main

main.ts
入口文件,改文件创建nest实例

6.特性

与平台无关。
适配器:可以允许与任何node.js框架一起使用。