Express Service Auto-Discovery and Mounting
express-mountie is a microlibrary for discovering express routers and apps and then mounting them into a master express app. This is useful for organization and strict segregation of RESTful resources. Organizing services in this way will allow you to break apart and independently scale your webapps when it becomes appropriate.
project │ README.md │ Gulpfile.js └───server ├───apps | └───subresourceA | | └───index.js (exports express app) | └───subresourceB | └───index.js (exports express router) │ main.js
// main.jsvar express =mountie =path =app = ;;app;
$ npm install express-mountie --save