title: How to split a single Node.js file into separate modules
body: <p>I want to split the code into different files. I currently write all <code>get</code> and <code>post</code> methods in the same file, but I want greater readability and manageability.</p>
  
  <p>I've tried to put the code in different files, but while running the main app, the rest of <code>get</code> and <code>post</code> methods in other files are not able to called.
  I include this:</p>
  
  <blockquote>
    <p>var Db = require('/filename.js');
    // ...but I can't call those methods.</p>
  </blockquote>
  
  <p>I want to split my single file code for readability. How do I achieve this?</p>