admin管理员组

文章数量:1356373

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
Share Improve this question edited Dec 20, 2012 at 21:07 Brett Gregson 5,9233 gold badges44 silver badges60 bronze badges asked Dec 20, 2012 at 21:03 jsfjsf 2,9719 gold badges32 silver badges33 bronze badges 4
  • 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
Add a ment  | 

1 Answer 1

Reset to default 3

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

本文标签: javascriptHow to develop a multitenant application with Nodejs (expressjs)Stack Overflow