Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module for Sailsjs

I am facing a new project that will be probably made with sails.js. Is there any way to write 'modules' for Sails, so I can isolate specific views, controllers, models, services, etc. in a module (folder) I can add or remove easily? If not, any idea / hack to achieve this?

Thanks in advance

like image 661
Ignacio Avatar asked Nov 01 '22 20:11

Ignacio


1 Answers

As we all know sails.js is built over node.js and express.js. We can write modules for node.js and then include them in our sails projects.. Here is a beautiful tutorial on how to write and publish node modules..

like image 70
Adil Malik Avatar answered Nov 12 '22 18:11

Adil Malik