【文件属性】:
文件名称:woa-frontend
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-30 05:33:26
JavaScript
WOA前端
安装
安装Node和Mongo。 然后安装所需的模块:
npm install
配置
检查./config.js并根据需要更新配置字段。
路由用于定义输入(即由当前实例公开)和输出(由要调用的服务公开)之间的映射。 有关详细信息,请查看下面的代码段中的评论。
routes: [
{
method: 'GET',
// The resource which will be cached
resource: {
// where to find the resource id in the 'in' parameter
id: 'uuid',
// the name of the resource, should be unique (not enforced)
name: 'bank'
},
【文件预览】:
woa-frontend-master
----config.js(701B)
----client.js(761B)
----index.js(1KB)
----package.json(418B)
----test()
--------bank.js(630B)
----service.js(1KB)
----middleware.js(557B)
----route.js(2KB)
----.gitignore(39B)
----cache.js(646B)
----README.md(1KB)