14

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
4
  • 2
    what does "multi-tenant" mean? Are you talking about hosting several domains/apps at once?
    – chovy
    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
    Dec 21, 2012 at 15:04
  • 2
    take a look at virtual hosts github.com/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. 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! Aug 11, 2018 at 9:00

1 Answer 1

3

a pretty complete 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.