MongoDB REST Interface

Just pushed my first attempt at a MongoDB REST Interface to github, it’s written for node.js.
MongoDB is a very cool document based database, but they themselves described it better:

MongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality).

The minute I read about MongoDB I immediately thought of using it with SproutCore, using Rails for this purpose seemed like a lot of overhead. Because node.js is very hot at the moment, I immediately thought about creating a module for it.

To use it all, you would have to install MongoDB and node.js. To see it in action, you could download the Todos tutorial code. Create a ‘tasks’ database and a ‘tasks’ collection. Be sure to change the flavor to “sproutcore” in settings.json. Start the REST server and be sure to connect to the MongoDB server by using your browser and go to “http://localhost:3000/#connect”.

Then use
this instead of the tutorial’s datasource.

Ideally I would publish this as a seed, but haven’t gotten around doing that. Also, I’ve tested this with node.js v0.1.93.

Leave a Reply