npm install --save route-registrar
This module helps you in structuring your Node.js app using express. You wont need to write one file apps anymore.
app.js file in the example folder.
If you need a more detailed explanation, take a look at this blog post: Structuring a node.js web application with Express