Loopback with PostgreSQL Multitenant
- Create 3 PostgreSQL databases (demo, demo1, demo2)
- Set user/password on datasources.json, datasources.demo1.json and datasources.demo2.json
$ npm install
$ grunt
$ NODE_ENV=demo1 grunt
$ NODE_ENV=demo2 grunt
$ node sever/server.js
$ 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