Node.js app implementing a very simple API style based on Mongodb