nodejs_restify:使用NodeJ,Restifity,Passport和Mongoose的Rest Server的基本示例

时间:2021-04-28 17:22:37
【文件属性】:
文件名称:nodejs_restify:使用NodeJ,Restifity,Passport和Mongoose的Rest Server的基本示例
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-28 17:22:37
JavaScript nodejs_restify 使用NodeJ,Restifity,Passport和Mongoose开发Rest Server的后端示例 构架 安定性 护照 猫鼬 引擎 节点:0.10.x npm:1.4.x 安装 $ npm安装 跑步 $节点src / app / app.js 测试 $ mocha src /-递归 用法 安装和配置本地Mongo Server 在上创建一个Twitter应用程序(如果尝试通过Twitter使用身份验证,则为可选) 在“数据库”部分(app.js)上设置和配置Mongo连接 设置__twitter_oauth_key和__twitter_oauth_secret值(app.js) 默认情况下,有一个用于登录用户的用户:usertest pass:123(first-user.js) 使用POST正文{“ name”:“ usertest”,“
【文件预览】:
nodejs_restify-master
----.gitignore(30B)
----package.json(722B)
----src()
--------app()
--------test()
----README.md(1KB)

网友评论