Slide 1

Slide 1 text

Hackathon QuickStart Ben Wen ben@mongolab.com @mongolab Node Knockout 2012 Build More. Worry Less. tl;dr version: 1. [sudo] npm update -g jitsu 2. jitsu databases create mongo

Slide 2

Slide 2 text

what is MongoLab? •  Cloud hosted MongoDB-as-a-Service •  In Joyent Cloud (and Amazon EC2, Rackspace or Azure) •  replication, backups, monitoring •  500MB free plan and multi-tenant for-pay plans •  dedicated server plan •  awesome admin tools •  REST API •  Quickstart: http://bit.ly/hackmongo

Slide 3

Slide 3 text

what is MongoDB? an awesome JSON object store ! ! ! ! { “firstName” : “Ben”,! “lastName” : “Wen”,! “email” : “ben@mongolab.com”,! “location” : { “lat” : 37.41, “long” : -122.05 },! “hobbies” : [ “music”, “biking”, “foto” ] }! http://mongodb.org

Slide 4

Slide 4 text

how we can help you today?

Slide 5

Slide 5 text

I’ve written my mobile app / realtime web app / API where should I store my data ? ?

Slide 6

Slide 6 text

MongoLab cloud database: Node.js native, Mongoose ODM, and REST API •  Standardized, well-known JSON interface •  High performance in Joyent Cloud •  Also a REST API with CRUD semantics REST API mongodb mongolab service Node.js native, or Mongoose ODM Mongodb driver

Slide 7

Slide 7 text

many use cases of simple cloud db storage needs • logging • user profile data • game data (stats, high scores) • polls and surveys • user feedback • geo database

Slide 8

Slide 8 text

Demo screenshot

Slide 9

Slide 9 text

/databases//collections! GET! ! /databases//collections/! GET ! POST! ! /databases//collections//<_id>! GET ! PUT! DELETE! ! /databases//collections/?[q=]! [&f=]! [&s=]! [&sk=]! [&l=]! GET! MongoLab’s REST API

Slide 10

Slide 10 text

MongoLab API Example •  POST ! URL: https://mongolab.com/api/1/databases/demo/collections/geoposts! ! Data: { “email” : “will@mongolab.com”,! ! “date” : { “$date” : “2010-12-03 11:18:21 UTC” },! “location” : { “lat” : 37.41, “long” : -122.05 },! ! “message” : “Hello Seattle!” }! ! • GET URL: https://…/geoposts?q={"location":{"$near":{"lat":37,"long":-122}}} !

Slide 11

Slide 11 text

Next Steps 1.  http://bit.ly/hackmongo - this presentation 2.  [sudo] npm update -g jitsu; jitsu databases create mongo 3.  Alternate Node Knockout instructions, with Web UI and more tutorials: http://blog.nodeknockout.com/post/ 35339780516/mongolabs-joyent-hosted- mongodb-quick-start 4.  Design, code, debug, repeat

Slide 12

Slide 12 text

Questions? Build More. Worry Less.

Slide 13

Slide 13 text

Thank you. Build More. Worry Less. or, you could just enjoy this clip-art kitteh…