loopback-example-multitenant:使用 PostgreSQL 多租户环回

时间:2021-06-23 20:47:24
【文件属性】:
文件名称:loopback-example-multitenant:使用 PostgreSQL 多租户环回
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-23 20:47:24
JavaScript 环回示例多租户 使用 PostgreSQL 多租户环回 数据库 创建 3 个 PostgreSQL 数据库(demo、demo1、demo2) 在 、 和上设置用户/密码 安装依赖 $ npm install 移民 $ grunt $ NODE_ENV=demo1 grunt $ NODE_ENV=demo2 grunt 跑步 $ node sever/server.js 为租户 demo1 创建注册表 $ curl --data "username=paulomcnally&message=Hello world" http://127.0.0.1:4000/demo1/tweets 浏览 http://localhost:4000/demo1/tweets http://localhost:4000/demo2/tweets
【文件预览】:
loopback-example-multitenant-master
----.gitignore(151B)
----README.md(699B)
----LICENSE(1KB)
----server()
--------datasources.demo2.json(91B)
--------boot()
--------server.js(578B)
--------config.json(493B)
--------datasources.json(90B)
--------middleware.json(287B)
--------datasources.demo1.json(91B)
--------model-config.json(509B)
----Gruntfile.js(410B)
----.jshintrc(349B)
----package.json(651B)
----.jshintignore(24B)
----client()
--------README.md(67B)
----common()
--------models()
----.editorconfig(288B)
----tenant.js(1KB)

网友评论