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

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

上传者: weixin_42144366 | 上传时间:2024/3/16 11:51:50 | 文件大小:191KB | 文件类型:ZIP
nest-boilerplate:NestJS的样板,支持数据库,svagger,配置,速率限制,日志记录,验证,异常处理,docker,测试和CI-源码
NestStarter一种boilerplage,使用Fastify。
请参阅Express分支(非常陈旧)。
产品特点安装$yarninstall跑步#development$yarnrunstart#watchmode$yarnrunstart:dev#productionmode$yarnrunstart:prod设定档软件包来管理配置。
默认配置值位于。
这些值可以通过以下方式覆盖:在config/中创建local.json文件在projcect目录中创建一个.env文件。
设置环境变量。
请参阅的环境变量映射。
数据库用于数据库操作。
它默认使用PostgreSQL,但是可以通过更改的type来。
有关支持的数据库,请参见。
移居Typeorm配置为使用迁移而不是syncsynchronize:true。
为了利用TypeORM通过检查您的实体的,需要配置cli。
基于创建一个.env文件。
然后可以使用yarnmigration:generate<your_migration_

文件下载

资源详情

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