【文件属性】:
文件名称:apibox:在几分钟内创建声明性API
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-18 03:55:35
JavaScript
重要提示:该模块只是概念证明,并不是为在生产中运行而构建的。 由于Strongloop的具有类似的目标,因此将不再维护该模块。
apibox
在几分钟内创建声明性API
0.要求
Node.js
NPM
MongoDB的
1.安装
mkdir myapi
cd myapi
npm install --save apibox
2.配置
将以下文件另存为config.js
module . exports = {
"db" : "test" , // the name of the MongoDB database
"collection" : "data" , // the name of the MongoDB Collection
"documentation" : "./docs.yml" , // the file where the API is
【文件预览】:
apibox-master
----.gitignore(13B)
----README.md(3KB)
----npm-shrinkwrap.json(21KB)
----docs.yml(1KB)
----LICENSE(1KB)
----api()
--------public()
--------api.js(1KB)
--------lib()
----package.json(812B)
----cli()
--------cli.js(674B)
--------lib()
----config.js(259B)
----lib()
--------db.js(522B)
--------api-tools.js(2KB)