route-registrar

Visits and requires every file ending with "Controller.js" and call its "init" function passing express "app" variable along

npm install route-registrar
3 downloads in the last day
22 downloads in the last week
109 downloads in the last month

route-registrar

Installation

npm install --save route-registrar

Description
This module helps you in structuring your Node.js app using express. You wont need to write one file apps anymore.

See the app.js file in the example folder.

Read More
If you need a more detailed explanation, take a look at this blog post: Structuring a node.js web application with Express

npm loves you