title: Reading, writing and storing JSON with Node on Heroku
body: <p>I am building an App based on Node.js running on Heroku.</p>
  
  <p>The app uses a JSON file which at the moment is being pushed with the rest of the app, and we are reading and writing to it like so:</p>
  
  <pre><code>var channelsList = require("./JSON/channels.json");
  
  ...
  
  fs.writeFile("JSON/channels.json", JSON.stringify(channelsList), onCleaned);
  </code></pre>
  
  <p>This has worked for now for the prototype, but I know that we need to use a data store or the changes won't persist when Dyno's sleep or I push changes.</p>
  
  <p>I have read that setting up a DB with Mongolabs could be a good option, but I was wondering if there are any other options, as this seems maybe more complicated than necessary. This is new territory for me, so if Mongo is the way to go, pointers would also be appreciated.</p>
  
  <p>We also want to write new files as backups for each day of the week.</p>
  
  <p>Cheers.</p>