最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to develop a multi-tenant application with Node.js (express.js)? - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论