title: Best way to store DB config in Node.Js / Express app
body: <p>What would be the best way to store DB config (username, password) in an open source app that runs on node.js / Express? Two specific questions:</p>
  
  <ol>
  <li><p>Shall I put it into a separate config.js file in <code>/lib</code> folder, for example, and never include it into the master repository that is publicly available on GitHub?</p></li>
  <li><p>To inlcude the config, is it as simple as <code>require('./config.js')</code> from the file that needs it or is there a better way of doing it?</p></li>
  </ol>
  
  <p>PS sorry if the questions seem a bit simple or not so well formulated, but I'm just starting :)</p>