Demo for MongoLab and Joyent no.de and node.js appliance. Client side
requires a WebGL browser. The application is a 3D rendered room that
allows guestbook functionality that scrolls guestbook entries up the
screen.
I needed a free, document based, online data store so that I could quickly build a HTML5 prototype. As an exercise, I quickly whipped up a simple application that can store basic contact details of people.
Getting Started with MongoLab
Connect to a replica pair, with one server on example1.com and another server on example2.com:
mongodb://example1.com:27017,example2.com:27017
"q" example - return all documents with "active" field of true:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?q={"active": true}&apiKey=myAPIKey
"c" example - return the count of documents with "active" of true:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?q={"active": true}&c=true&apiKey=myAPIKey
"f" example (include) - return all documents but include only the "firstName" and "lastName" fields:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?f={"firstName": 1, "lastName": 1}&apiKey=myAPIKey
"f" example (exclude) - return all documents but exclude the "notes" field:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?f={"notes": 0}&apiKey=myAPIKey
"fo" example - return a single document matching "active" field of true:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?q={"active": true}&fo=true&apiKey=myAPIKey
"s" example - return all documents sorted by "priority" ascending and "difficulty" descending:
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?s={"priority": 1, "difficulty": -1}&apiKey=myAPIKey
"sk" and "l" example - sort by "name" ascending and return 10 documents after skipping 20
https://api.mongolab.com/api/1/databases/my-db/collections/my-coll?s={"name":1}&sk=20&l=10&apiKey=myAPIKey