I'm looking for resources on how to write a multi-tenant application in Node.js. Can anyone guide me in the right direction? Thanks.
Here's my technology stack:
- Node.js
- Express.js
- Mocha.js
- Postgres SQL
- JavaScript
- HTML5
I'm looking for resources on how to write a multi-tenant application in Node.js. Can anyone guide me in the right direction? Thanks.
Here's my technology stack:
- Node.js
- Express.js
- Mocha.js
- Postgres SQL
- JavaScript
- HTML5
- 2 what does "multi-tenant" mean? Are you talking about hosting several domains/apps at once? – chovy Commented Dec 20, 2012 at 21:35
- By multi-tenant I mean have one central application which is accessible by tenants through sub-domains. The database is shared. Each tenant will then have it's own users. I'm basically developing a SaaS service. – jsf Commented Dec 21, 2012 at 15:04
- 2 take a look at virtual hosts github./visionmedia/express/blob/master/examples/vhost/… You can create more than one app and share some part of the system such as the database connections. – jackdbernier Commented Apr 22, 2013 at 23:40
- @jsf Did you get any lead? Can you point me to some useful resources? I am at the same point where you were right now :). Let me know if you can help. Thanks! – Suresh Mainali Commented Aug 11, 2018 at 9:00
1 Answer
Reset to default 3a pretty plete StackOverflow answer can be found here:
How to make Node.js Multi-tenant for websites on port 80?
also jackdbernier has a good answer about vhosts within expressJS.