NodeAPI:在Node.js + MongoDB上的简单RESTful API实现-源码

上传者: 42143221 | 上传时间: 2021-02-02 03:35:40 | 文件大小: 37KB | 文件类型: ZIP
节点REST API NodeAPI是基于顶级Node.js和Express.js与Mongoose.js进行MongoDB集成的R​​EST API服务器实现。 访问控制在OAuth2orize和Passport.js的帮助下遵循OAuth 2.0规范。 这是文章之后的更新代码。 正在运行的项目 手册 您需要安装和 。 macOS上的节点设置 # Update Homebrew before installing all dependencies brew update # Install Node (+npm) with Homebrew brew install node # Install npm dependencies in project folder npm install 在macOS上安装MongoDB # Install MongoDB with Homebrew brew tap mongodb/brew brew install mongodb-community # Create directory for MongoDB data mkdir -p

文件下载

资源详情

[{"title":"( 30 个子文件 37KB ) NodeAPI:在Node.js + MongoDB上的简单RESTful API实现-源码","children":[{"title":"NodeAPI-master","children":[{"title":".gitignore <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 78.81KB </span>","children":null,"spread":false},{"title":"LICENSE.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":".dockerignore <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"www <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true},{"title":"generateData.js <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"app.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"model","children":[{"title":"client.js <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"refreshToken.js <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"accessToken.js <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"article.js <span style='color:#111;'> 631B </span>","children":null,"spread":false},{"title":"user.js <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"db","children":[{"title":"mongoose.js <span style='color:#111;'> 499B </span>","children":null,"spread":false}],"spread":false},{"title":"log.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"auth","children":[{"title":"oauth2.js <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"auth.js <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"config.js <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"routes","children":[{"title":"articles.js <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"api.js <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"users.js <span style='color:#111;'> 749B </span>","children":null,"spread":false},{"title":"oauth.js <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"docker.config.json <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"server.test.js <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"config.json <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"logs","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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