5

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

Travis Webb
  • 14,688
  • 7
  • 55
  • 109
Ignacio
  • 688
  • 5
  • 17

1 Answers1

2

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

Mahammad Adil Azeem
  • 9,112
  • 13
  • 57
  • 84