Rapid API development on MongoDB

822 views

Published on

This is short presentation that I did during the 12th meetup of the Kuala Lumpur MongoDB user group. I shared some of my experiences with trying out deployd.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
822
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
12
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Rapid API development on MongoDB

  1. 1. Rapid API development on MongoDBDaniel Hjelm @dhjelmGoogle+ profile: http://goo.gl/QcLND
  2. 2. • "the simplest way to build an API" • Open source • Build on Node.js and MongoDBhttp://deployd.com/ • Common server and client API (dpd.js) • Can sync client states through Web-sockets. • No live reload :(
  3. 3. Getting started$ dpd create klmug-dpdYou need to specify dbname and host (at least wheninstalling from NPM). Otherwise you just get stuck with a:$ dpd -dstarting deployd v0.6.8...Instead do:$ dpd --dbname klmug-dpd --host localhost --mongoPort 27017starting deployd v0.6.8...listening on port 2403type help for a list of commandsdpd >
  4. 4. Dashboard
  5. 5. Client server communication• Two ways to interact with the server • via dpd.js • via REST calls• Returns JSON• No authentication by default • No CSRF protection
  6. 6. Pros• Easy to get started• Example projects available on the website• Could be good if you are new to REST• Deployds realtime capabilities• Not only tied to web application developent
  7. 7. Cons• Kind of treats MongoDB as if it was a relational DB• Only support one level of objects • localhost:1234/meetings/12/attendees• Can’t modify the id field (must be an auto- generated ObjectId)
  8. 8. More cons...• Does not support live reload• Their scaleable cloud does not seems to work• No datetime type• No support for MongoDB replication nor sharding
  9. 9. Conclusion• Easy to get started with, but ...• I can’t really see it as anything more than a prototyping tool
  10. 10. Questions?

×