I am looking for subjective advice (and I know this might get closed), but I want to be able to separate routes and controllers in a node.js project so I have some questions:
- Is it useless to try and is the node.js philosophy to have fewer/larger JS files?
- I want to be able to require("routing") and have it wire up all my routes to the required module for my controllers. I can do this easily if I just put everything in
index.jsbut that seems odd. I am already doingapp.get("/" controllers.index);style separation, but I am getting hung up on building a module that just includes all JS files in another module. Am I missing something? - Or maybe there is a completely different node.js style to do this, and I am trying to map my ASP.NET MVC knowledge too deeply?