An example of shared database schema isolated multi-tenant implementation with express, nodejs and sequelize.
- run query from
database/shared.sql
,database/tenant_1.sql
, anddatabase/tenant_1.sql
- change parameter
username
andpassword
frommiddlewares/sequelize.js
- execute
npm install
- running
npm start
- call api from your api client (ex. Postman)
localhost:9090/tasks
with header
"Authorization":"{"email": "user1@example.com", "password": "pass1"}"
nodejs >= 8.x
mariadb >= 10.2.x
This project is licensed under the MIT License - see the LICENSE.md file for details