MongoDB interactive tutorial
mongly.com
mongly.com
(At least I think it's an easter egg, I didn't get all the way through. Maybe murdering unicorns is a normal part of the tutorial)
The commands are executed against a real unicorns mongodb collection (each user having his or her own)...so you are only limited by what's been implemented in the javascript shell and on the thin proxy backend.
This does mean that someone who wanted to take the server down probably wouldn't have to try very hard.
Output from back to back db.users.find() command. It took a while for Johnny to be updated to Cash.
> db.users.find();
[ { "_id" : { "$oid" : "4d82805ecc9374271b03dd8a" }, "name" : "Johnny", "languages" : [ "ruby", "c" ] }, { "_id" : { "$oid" : "4d828066cc9374271b03dd8b" }, "name" : "Sue", "languages" : [ "scala", "lisp" ] } ]
> db.users.find();
[ { "_id" : { "$oid" : "4d82805ecc9374271b03dd8a" }, "name" : "Cash", "languages" : [ "english" ] }, { "_id" : { "$oid" : "4d828066cc9374271b03dd8b" }, "name" : "Sue", "languages" : [ "scala", "lisp" ] } ] >
Ed: Oops. I was on the try.mongodb.org page. Not the linked article. I am trying that now.
After lesson 16 all the instructions disappeared and I was left with a white screen. Tried to go to a different lesson or the restart command but the instructions didn't come back. Couldn't replicate the problem unfortunately.
The timeouts on this particular page could use some tweaking, though.
Received: "undefined method `collection_names' for nil:NilClass"
Edit: It's relying on my cookie which wasn't enabled, oops.
The official MongoDB interactive tutorial: http://try.mongodb.org/
Seems to be a clone of redis: http://try.redis-db.com/
Pretty good overall though.
The real world unicorns are not born on the same second that their db record is created.