nest-boilerplate:NestJS的样板,支持数据库,svagger,配置,速率限制,日志记录,验证,异常处理,docker,测试和CI-源码

上传者: 42144366 | 上传时间: 2021-01-30 14:09:17 | 文件大小: 191KB | 文件类型: ZIP
Nest Starter 一种boilerplage ,使用Fastify。 请参阅Express分支(非常陈旧)。 产品特点 安装 $ yarn install 跑步 # development $ yarn run start # watch mode $ yarn run start:dev # production mode $ yarn run start:prod 设定档 软件包来管理配置。 默认配置值位于。 这些值可以通过以下方式覆盖: 在config /中创建local.json文件 在projcect目录中创建一个.env文件。 设置环境变量。 请参阅的环境变量映射。 数据库 用于数据库操作。 它默认使用PostgreSQL,但是可以通过更改的type来。 有关支持的数据库,请参见。 移居 Typeorm配置为使用迁移而不是sync synchronize: true 。 为了利用TypeORM通过检查您的实体的,需要配置cli。 基于创建一个.env文件。 然后可以使用yarn migration:generate <your_migration_

文件下载

资源详情

( 62 个子文件 191KB ) nest-boilerplate:NestJS的样板,支持数据库,svagger,配置,速率限制,日志记录,验证,异常处理,docker,测试和CI-源码
nest-boilerplate-master
.dockerignore 35B
tsconfig.build.json 116B
.github
workflows
main-workflow.yml 600B
Dockerfile-e2e 78B
yarn.lock 381.50KB
.eslintrc.js 833B
src
main.ts 2.89KB
common
error-codes.ts 273B
dto
ApiError.dto.ts 369B
ApiResponse.dto.ts 116B
Config.ts 899B
util
ResponseUtils.ts 520B
logging
CustomLogger.ts 3.31KB
remove-sensitive.ts 752B
Sample.transport.ts 397B
guards
auth.guard.ts 857B
filters
all-exceptions-filter.ts 1.98KB
db
migration
1599067091400-create-tables.ts 1.76KB
modules
users
entitiy
Contact.entity.ts 909B
Address.entity.ts 835B
User.entity.ts 1.12KB
dto
CreateAddress.dto.ts 230B
UpdateUser.dto.ts 297B
address.dto.ts 258B
contact.dto.ts 166B
CreateUser.dto.ts 420B
CreateContactDto.ts 178B
user.dto.ts 443B
UpdateContact.dto.ts 178B
users.service.spec.ts 2.79KB
users.controller.spec.ts 2.54KB
users.service.ts 2.78KB
users.module.ts 475B
users.controller.ts 2.65KB
app
app.service.ts 360B
app.controller.ts 512B
app.controller.spec.ts 858B
middleware
request-headers.middleware.ts 441B
decorators
correlation-id.decorator.ts 281B
app.module.ts 802B
interceptors
logging.interceptor.ts 799B
pipes
validation.pipe.ts 2.60KB
Dockerfile 387B
docker-compose-e2e.yml 619B
nest-cli.json 64B
.travis.yml 120B
tsconfig.json 347B
config
test.json 102B
default.json 909B
custom-environment-variables.json 643B
LICENSE 1.03KB
test
jest-e2e.json 183B
app.e2e-spec.ts 3.15KB
util
Blank.transport.ts 336B
logging.ts 204B
.prettierrc 69B
README.md 7.57KB
docker-compose.yml 651B
.env.sample 277B
.gitignore 3.48KB
.eslintignore 18B
package.json 3.43KB
[{"title":"( 62 个子文件 191KB ) nest-boilerplate:NestJS的样板,支持数据库,svagger,配置,速率限制,日志记录,验证,异常处理,docker,测试和CI-源码","children":[{"title":"nest-boilerplate-master","children":[{"title":".dockerignore <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"tsconfig.build.json <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"main-workflow.yml <span style='color:#111;'> 600B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Dockerfile-e2e <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 381.50KB </span>","children":null,"spread":false},{"title":".eslintrc.js <span style='color:#111;'> 833B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main.ts <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"common","children":[{"title":"error-codes.ts <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"dto","children":[{"title":"ApiError.dto.ts <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"ApiResponse.dto.ts <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"Config.ts <span style='color:#111;'> 899B </span>","children":null,"spread":false},{"title":"util","children":[{"title":"ResponseUtils.ts <span style='color:#111;'> 520B </span>","children":null,"spread":false}],"spread":true},{"title":"logging","children":[{"title":"CustomLogger.ts <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"remove-sensitive.ts <span style='color:#111;'> 752B </span>","children":null,"spread":false},{"title":"Sample.transport.ts <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"guards","children":[{"title":"auth.guard.ts <span style='color:#111;'> 857B </span>","children":null,"spread":false}],"spread":true},{"title":"filters","children":[{"title":"all-exceptions-filter.ts <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"db","children":[{"title":"migration","children":[{"title":"1599067091400-create-tables.ts <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"modules","children":[{"title":"users","children":[{"title":"entitiy","children":[{"title":"Contact.entity.ts <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"Address.entity.ts <span style='color:#111;'> 835B </span>","children":null,"spread":false},{"title":"User.entity.ts <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"dto","children":[{"title":"CreateAddress.dto.ts <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"UpdateUser.dto.ts <span style='color:#111;'> 297B </span>","children":null,"spread":false},{"title":"address.dto.ts <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"contact.dto.ts <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"CreateUser.dto.ts <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"CreateContactDto.ts <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"user.dto.ts <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"UpdateContact.dto.ts <span style='color:#111;'> 178B </span>","children":null,"spread":false}],"spread":false},{"title":"users.service.spec.ts <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"users.controller.spec.ts <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"users.service.ts <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"users.module.ts <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"users.controller.ts <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"app","children":[{"title":"app.service.ts <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"app.controller.ts <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"app.controller.spec.ts <span style='color:#111;'> 858B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"middleware","children":[{"title":"request-headers.middleware.ts <span style='color:#111;'> 441B </span>","children":null,"spread":false}],"spread":false},{"title":"decorators","children":[{"title":"correlation-id.decorator.ts <span style='color:#111;'> 281B </span>","children":null,"spread":false}],"spread":false},{"title":"app.module.ts <span style='color:#111;'> 802B </span>","children":null,"spread":false},{"title":"interceptors","children":[{"title":"logging.interceptor.ts <span style='color:#111;'> 799B </span>","children":null,"spread":false}],"spread":false},{"title":"pipes","children":[{"title":"validation.pipe.ts <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Dockerfile <span style='color:#111;'> 387B </span>","children":null,"spread":false},{"title":"docker-compose-e2e.yml <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"nest-cli.json <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 347B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"test.json <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"default.json <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"custom-environment-variables.json <span style='color:#111;'> 643B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"jest-e2e.json <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"app.e2e-spec.ts <span style='color:#111;'> 3.15KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"Blank.transport.ts <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"logging.ts <span style='color:#111;'> 204B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".prettierrc <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.57KB </span>","children":null,"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 651B </span>","children":null,"spread":false},{"title":".env.sample <span style='color:#111;'> 277B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...