cbmono / hapijs-seed-mvc

hapi Seed Project: MVC, ES6, Gulp, Tests, Logging, Migrations, RDBMs, Documentation, etc.
MIT License
40 stars 24 forks source link

Register plugins on different connections using labels? #29

Closed saurabhghewari closed 8 years ago

saurabhghewari commented 8 years ago

Great architecture and coding standards. Using this in one of my company project.

How to register plugins to server based on connection labels. For example, I want to register hapi-swagger plugin to the server but on 'docs' label connection which is listening on 8000 port and not api label. I followed the hapi-swagger documentation but did not get success.

Registering hapi-swagger on single connection of server works fine, but i want to have seperate connection listening to documentation api.

Please, guide me for this.

saurabhghewari commented 8 years ago

O, it was my mistake not registering Inert and vision on same labeled connection. Issues solved. Thank you for this great architecture. Could this be done same using Sequelize or Bookshelf ORMS?

cbmono commented 8 years ago

@saurabhghewari sorry, just saw this :( Glad you were able to solve your hapi-swagger issue. Would you mind sharing it?

Could this be done same using Sequelize or Bookshelf ORMS?

Certainly. Though there is some work needed: