hapi-api-base:基于Hapi的API的基本代码

上传者: 42178963 | 上传时间: 2022-12-01 15:59:31 | 文件大小: 156KB | 文件类型: ZIP
:warning: 这将不再更新 Hapi API基础 我发现自己在启动基于的API时总是使用的基本代码 ORM(SQL) 使用HTTPS进行本地开发 文献资料 入门 克隆此仓库 ~$ git clone git@github.com:iniva/hapi-api-base.git 从主机运行项目 要使用计算机来运行所有内容,您需要: 节点LTS版本,例如Carbon或Dubnium(推荐) 。 推荐使用nvm很简单 苹果电脑 运行brew install nvm 的Ubuntu 有关最新版本,请检查nvm版本 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash source ~/.profile 两个都 使用lts / dubnium 运行nvm install lts

文件下载

资源详情

[{"title":"( 80 个子文件 156KB ) hapi-api-base:基于Hapi的API的基本代码","children":[{"title":"hapi-api-base-master","children":[{"title":".babelrc <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"hooks","children":[{"title":"index.js <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"message.js <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":".eslintrc.js <span style='color:#111;'> 155B </span>","children":null,"spread":false}],"spread":true},{"title":"docs","children":null,"spread":false},{"title":"jsconfig.json <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"db","children":[{"title":".gitignore <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":true},{"title":"memcached","children":[{"title":".gitignore <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":true},{"title":"redis","children":[{"title":".gitignore <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"._travis.yml <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"webstorm.js <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"jest.config.js <span style='color:#111;'> 408B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":".env.example <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"config","children":[{"title":"index.js <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"cache","children":[{"title":"redis.js <span style='color:#111;'> 566B </span>","children":null,"spread":false}],"spread":false},{"title":"test.js <span style='color:#111;'> 99B </span>","children":null,"spread":false},{"title":"database","children":[{"title":"mongodb.js <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":false},{"title":"development.js <span style='color:#111;'> 291B </span>","children":null,"spread":false},{"title":"production.js <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"slack.js <span style='color:#111;'> 222B </span>","children":null,"spread":false}],"spread":false},{"title":"index.js <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"plugins","children":[{"title":"index.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"database","children":[{"title":"mongodb","children":[{"title":"schemas","children":[{"title":"index.js <span style='color:#111;'> 19B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"api","children":[{"title":"events","children":[{"title":"index.js <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"routes.js <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"controller.js <span style='color:#111;'> 539B </span>","children":null,"spread":false}],"spread":false},{"title":"health","children":[{"title":"index.js <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"routes.js <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"controller.js <span style='color:#111;'> 227B </span>","children":null,"spread":false}],"spread":false},{"title":"webhooks","children":[{"title":"index.js <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"routes.js <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"controller.js <span style='color:#111;'> 581B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"services","children":[{"title":"discovery","children":[{"title":"index.js <span style='color:#111;'> 843B </span>","children":null,"spread":false}],"spread":false},{"title":"events","children":[{"title":"index.js <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"listeners","children":[{"title":"index.js <span style='color:#111;'> 80B </span>","children":null,"spread":false},{"title":"base.js <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"base.test.js <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"exampleEvent.js <span style='color:#111;'> 258B </span>","children":null,"spread":false}],"spread":false},{"title":"service.js <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":false},{"title":"slack","children":[{"title":"service.test.js <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"service.js <span style='color:#111;'> 687B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"utils","children":[{"title":"cache","children":[{"title":"index.js <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"memory.js <span style='color:#111;'> 458B </span>","children":null,"spread":false},{"title":"redis.js <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"extensions","children":[{"title":"index.js <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"onPreHandlerEvent.js <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"onRequestEvent.js <span style='color:#111;'> 335B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"index.js <span style='color:#111;'> 487B </span>","children":null,"spread":false}],"spread":false},{"title":"http","children":[{"title":"index.js <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"index.test.js <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"statusCodes.js <span style='color:#111;'> 346B </span>","children":null,"spread":false}],"spread":false},{"title":"logger","children":[{"title":"index.js <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"logger.test.js <span style='color:#111;'> 802B </span>","children":null,"spread":false}],"spread":false},{"title":"validator","children":[{"title":"index.js <span style='color:#111;'> 851B </span>","children":null,"spread":false},{"title":"index.test.js <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"helpers","children":[{"title":"objects.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"string.test.js <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"units.js <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"units.test.js <span style='color:#111;'> 327B </span>","children":null,"spread":false},{"title":"objects.test.js <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"string.js <span style='color:#111;'> 858B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".eslintrc.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":".huskyrc <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"init.js <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"docker","children":[{"title":"local","children":[{"title":"local.sh <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"start.sh <span style='color:#111;'> 130B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"run.sh <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 76B </span>","children":null,"spread":false},{"title":".dockerignore <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 299.92KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"nodemon.json <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"settings.json <span style='color:#111;'> 26B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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