Node.js & Compose
Quick note: In this example, we are assuming that your Compose connection string is set in an environment variable
MONGOHQ_URL, like this:
This code uses the node-mongodb-native driver, though in production you may want something a little less... nesty. Like all good Node packages, you can get it via NPM.
Connecting with Node.js (Coffeescript)