coral:使用 express 和 mongoose 模型创建 REST API 的 Node.js 框架

时间:2021-08-04 10:09:36
【文件属性】:
文件名称:coral:使用 express 和 mongoose 模型创建 REST API 的 Node.js 框架
文件大小:51KB
文件格式:ZIP
更新时间:2021-08-04 10:09:36
rest mongodb mongoose-model coral JavaScript 珊瑚 使用 express 和 mongoose 模型创建 REST API 的 Node.js 框架 目录 安装 # NPM npm install coral --save 用法 创建路线 将路径和猫鼬模型作为配置传递给 Coral 以生成路由 var app = express ( ) ; //define mongoose schema var ProductSchema = new Schema ( { name : String } ) ; //create the mongoose model var Product = mongoose . model ( 'Product' , ProductSchema ) ; //Coral will return the express router with REST routes var productRoute
【文件预览】:
coral-master
----.gitattributes (66B)
----.vscode()
--------launch.json(715B)
----lib()
--------coral.js(2KB)
--------subDocQuery.js(3KB)
--------query.js(2KB)
--------queryConfig.js(3KB)
----.npmignore(48B)
----.travis.yml(60B)
----LICENSE(1KB)
----test()
--------helper()
--------query()
--------coralSubDoc()
--------coral()
--------subDocQuery()
----README.md(4KB)
----.editorconfig(264B)
----.gitignore(941B)
----index.js(40B)
----package-lock.json(90KB)
----package.json(1KB)

网友评论