【文件属性】:
文件名称:nestjs-starter:nestjs 快速开始框架
文件大小:131KB
文件格式:ZIP
更新时间:2021-05-17 05:19:36
TypeScript
Nest快速开发框架
集成了如下技术:
ORM:typeorm
认证:passport
文档:swagger
日志工具:nest-pino
开发之前请详细阅读项目中的所有文档(各个目录下的README.md)文件,以及熟悉中提到的所有技术。
开发
git clone https://github.com/YES-Lee/nestjs-starter.git # 拉取代码
cd nestjs-starter
yarn install
yarn start:dev
swagger地址:http://localhost:3001/swagger
项目结构
src
├─ config // 配置模块
├─ database // 数据库模块
│ └─ entities // typeorm实体类
├─ decorators // 自定义装饰器目录
├─ dto // restful 接口模型目录
【文件预览】:
nestjs-starter-master
----package.json(3KB)
----tslint.json(508B)
----test()
--------jest-e2e.json(183B)
--------app.e2e-spec.ts(630B)
----.prettierrc(51B)
----pm2.config.js(538B)
----TODO.md(146B)
----nest-cli.json(64B)
----src()
--------config()
--------enums()
--------database()
--------app.module.ts(1KB)
--------dto()
--------decorators()
--------main.ts(1KB)
--------interceptors()
--------app.controller.ts(655B)
--------app.service.ts(432B)
--------lib()
--------filters()
--------pipes()
--------app.controller.spec.ts(681B)
--------modules()
----tsconfig.json(367B)
----.gitignore(375B)
----README.md(3KB)
----yarn.lock(312KB)
----tsconfig.build.json(97B)
----.vscode()
--------settings.json(488B)
--------extensions.json(155B)