4 ms·
Can you give an example of how you've organised the modules? Like one per model (a products module) or by section of the site?
by Rodeoclash 13y ago
Can you give an example of how you've organised the modules? Like one per model (a products module) or by section of the site?
- rs 13y agoIf I'm not mistaken, instead of splitting into: controllers/ users.js teams.js models/ user.js team.js Just have: modules/ users.js teams.js Where model and controllers for each function is defined within a single file. I've switched to this convention as well - less context switching of files.
- Kiro 13y agoI don't understand what you would have in "models". Services?