Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 699 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 699 Bytes

loopback-example-multitenant

Loopback with PostgreSQL Multitenant

Database

Install dependencies

$ npm install

Migration

$ grunt
$ NODE_ENV=demo1 grunt
$ NODE_ENV=demo2 grunt

Run

$ node sever/server.js

Create registry for tenant demo1

$  curl --data "username=paulomcnally&message=Hello world" http://127.0.0.1:4000/demo1/tweets

Browse

http://localhost:4000/demo1/tweets
http://localhost:4000/demo2/tweets