copoet
copoet

Reputation: 169

Creating modules/HMVC in sails.js

I am trying to make a separation in my new SailsJS app by creating modules/HMVC, just like ASP.NET MVC, and Codeigniter PHP. These frameworks provide a mechanism for handling such a separation. Do any one have an idea how to implement this in SailsJS?

Upvotes: 1

Views: 521

Answers (2)

max
max

Reputation: 726

I think the most recent sails plugin/backend components system discussion is balderdashy/sails/pull/2083.

It looks like the most viable module solution today is balderdashy/sails-hook-subapps, an example of a sails hook. Hopefully, it works with 0.12.x and gets some attention/docs soon!

Additionally, the project sailorjs/sailorjs appears to do exactly this as a fork of sails from version 0.10.x, though I don't know if there are plans ot utilize that work in sails.js.

Upvotes: 0

danba
danba

Reputation: 877

There is some development taking place in that direction, I'm not quite sure whether or not anything usable already exists, at least I haven't been able to find anything final so far. Two threads where adding HMVC to sails was discussed are

https://github.com/balderdashy/sails/issues/1191

https://github.com/balderdashy/sails/issues/594

Upvotes: 1

Related Questions