scoops-server:用于UBC SCOOPS的Content API,在restify和Cassandra上运行-源码

上传者: 42120997 | 上传时间: 2021-04-30 17:03:06 | 文件大小: 31KB | 文件类型: ZIP
独家新闻 UBC SCOOPS(科学合作学生协会)基于Node.js的内容API。 使用Restify构建主要的HTTP端点,使用Cassandra构建数据的持久性,使用Redis构建令牌的快速存储。 功能概要 服务器提供公共端点用于用户注册以及读取文章和事件数据。 这用于面向公众的Web客户端。 写入(POST和PATCH)需要一个承载令牌,可以在/ token端点使用客户端密钥/秘密和用户电子邮件/密码来请求承载令牌。 表单和响应资源将在将来包括在内。 运行服务器 依赖关系-安装node.js并运行npm install 设置Cassandra-持久性需要本地或远程的Cassandra入口点。 必须在config.json中指定Cassandra主机,端口,凭据和密钥空间。 创建Cassandra表-在根项目文件夹中,运行npm run createtables在配置的数据库和键空

文件下载

资源详情

[{"title":"( 41 个子文件 31KB ) scoops-server:用于UBC SCOOPS的Content API,在restify和Cassandra上运行-源码","children":[{"title":"scoops-server-master","children":[{"title":"docs","children":[{"title":"api-draft.txt <span style='color:#111;'> 805B </span>","children":null,"spread":false},{"title":"data-access-protocol.txt <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"schema-draft.txt <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 931B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"config.js <span style='color:#111;'> 711B </span>","children":null,"spread":false},{"title":"forms","children":[{"title":"routes.js <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"handlers.js <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"responses","children":[{"title":"repository.js <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"controller.js <span style='color:#111;'> 659B </span>","children":null,"spread":false}],"spread":true},{"title":"repository.js <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"articles","children":[{"title":"routes.js <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"handlers.js <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"repository.js <span style='color:#111;'> 9.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"auth","children":[{"title":"strategies.js <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"routes.js <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"provider.js <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"clients","children":[{"title":"handlers.js <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"repository.js <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"db","children":[{"title":"helpers.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"client.js <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"createTables.js <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"schema","children":[{"title":"index.js <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"responsesSchema.js <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"filesSchema.js <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"authSchema.js <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"articlesSchema.js <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"usersSchema.js <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"udts.js <span style='color:#111;'> 791B </span>","children":null,"spread":false},{"title":"formsSchema.js <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"eventsSchema.js <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"server.js <span style='color:#111;'> 703B </span>","children":null,"spread":false},{"title":"users","children":[{"title":"routes.js <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"handlers.js <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"repository.js <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"events","children":[{"title":"routes.js <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"repository.js <span style='color:#111;'> 7.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"files","children":[{"title":"controller.js <span style='color:#111;'> 13B </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"regexPatterns.js <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"joiPatterns.js <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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