express-boillerplate-restfullapi:使用expressjs和mongodb构建的illererapi-源码

上传者: 42137028 | 上传时间: 2021-02-03 14:05:51 | 文件大小: 96KB | 文件类型: ZIP
使用MongoDB表达Boillerplate RestfullApi 核心堆栈 Node.js - Express - Mongo数据库-https : 猫鼬-https : nodemon - //www.npmjs.com/package/nodemon pm2 - //www.npmjs.com/package/pm2 特征 使用jwt进行身份验证,登录,注销,注册,黑名单令牌,注销jwt 用jwt验证路线 粗俗的例子 错误处理 数据库不使用sql mongodb mongoose 用摩卡和柴测试 覆盖范围使用istanbull 与码头工人的例子 验证,使用Express-Valdator 分页示例 自定义消息API响应 埃斯林特爱彼迎基地 单元测试 怎么跑 复制环境变量 cp .env-sample .env 手动运行 # install package npm install # running app npm run dev # running unit tetsing npm run test 尽早填写复制的环境 APP_PORT=2000 T

文件下载

资源详情

[{"title":"( 50 个子文件 96KB ) express-boillerplate-restfullapi:使用expressjs和mongodb构建的illererapi-源码","children":[{"title":"express-boillerplate-restfullapi-master","children":[{"title":"models","children":[{"title":"functions","children":[{"title":"user_func.js <span style='color:#111;'> 139B </span>","children":null,"spread":false}],"spread":true},{"title":"attributes","children":[{"title":"user_attr.js <span style='color:#111;'> 324B </span>","children":null,"spread":false}],"spread":true},{"title":"CountryModel.js <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"ItemModel.js <span style='color:#111;'> 393B </span>","children":null,"spread":false},{"title":"UserModel.js <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"BlacklistModel.js <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"CustomerModel.js <span style='color:#111;'> 524B </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"logger.js <span style='color:#111;'> 675B </span>","children":null,"spread":false},{"title":"db.js <span style='color:#111;'> 980B </span>","children":null,"spread":false}],"spread":true},{"title":"documentation.json <span style='color:#111;'> 10.67KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":".eslintrc.json <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"item.test.js <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"user.test.js <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"server.js <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"routes","children":[{"title":"index.js <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"UserRoute.js <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"CountryRoute.js <span style='color:#111;'> 796B </span>","children":null,"spread":false},{"title":"ItemRoute.js <span style='color:#111;'> 683B </span>","children":null,"spread":false},{"title":"CustomerRoute.js <span style='color:#111;'> 747B </span>","children":null,"spread":false}],"spread":true},{"title":"Dockerfile <span style='color:#111;'> 132B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 234.62KB </span>","children":null,"spread":false},{"title":"controllers","children":[{"title":"user","children":[{"title":"UserController.js <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"validation.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"AuthController.js <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"customer","children":[{"title":"CustomerController.js <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"validation.js <span style='color:#111;'> 310B </span>","children":null,"spread":false}],"spread":false},{"title":"item","children":[{"title":"validation.js <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"ItemController.js <span style='color:#111;'> 507B </span>","children":null,"spread":false}],"spread":false},{"title":"country","children":[{"title":"CountryController.js <span style='color:#111;'> 591B </span>","children":null,"spread":false},{"title":"validation.js <span style='color:#111;'> 359B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".env-sample <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"Dockerfile.release <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":".dockerignore <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":".codeclimate.yml <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.71KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"crud.js <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false}],"spread":false},{"title":".editorconfig <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"ci.yml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"docker-compose-production.yml <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"helpers","children":[{"title":"token_validation.js <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"pagination.js <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"exceptions.js <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"validation.js <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"constant.js <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"custom.js <span style='color:#111;'> 322B </span>","children":null,"spread":false}],"spread":false},{"title":"Boillerplate-Expressjs.postman_collection.json <span style='color:#111;'> 18.02KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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