A library for moving your express routes/controllers out of your app file.
Require express-conductor and after configuring your app file, pass it in detailing the location of your routes and controllers.
var expressConductor = ;/** Normal express setup...*/expressConductor;
Inside your routes/controllers folder you can structure your files however you want. Express-conductor will traverse folders and grab any file. You can have a simple file layout
controllers├── index.js└── posts.js
Or you can have a nested structure to imitate actions
controllers├── Posts| ├── show.js| ├── create.js| └── etc...└── Comments├── show.js├── create.js└── etc...
Express-conductor will grab them all. Just expose an init function and define your routes accordingly.
Be sure to install the dev dependencies and just run