SlideShare a Scribd company logo
Rapid API development
    on MongoDB


Daniel Hjelm @dhjelm
Google+ profile: http://goo.gl/QcLND
•   "the simplest way to build
                          an API"

                      •   Open source

                      •   Build on Node.js and
                          MongoDB

http://deployd.com/   •   Common server and
                          client API (dpd.js)

                      •   Can sync client states
                          through Web-sockets.

                      •   No live reload :(
Getting started
$ dpd create klmug-dpd


You need to specify dbname and host (at least when
installing from NPM). Otherwise you just get stuck with a:
$ dpd -d
starting deployd v0.6.8...

Instead do:
$ dpd --dbname klmug-dpd --host localhost --mongoPort 27017
starting deployd v0.6.8...
listening on port 2403
type help for a list of commands
dpd >
Dashboard
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
Pros
• Easy to get started
• Example projects available on the website
• Could be good if you are new to REST
• Deployd's realtime capabilities
• Not only tied to web application
  developent
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)
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
Conclusion


• Easy to get started with, but ...
• I can’t really see it as anything more than a
  prototyping tool
Questions?

More Related Content

PDF
Cloud App Develop
PPTX
Vlad zelinschi optimizing the critical rendering path
PPTX
MongoDB World 2018: Tutorial - MongoDB & NodeJS: Zero to Hero in 80 Minutes
PPTX
Introduction to NodeJS
PDF
MEAN Stack - Google Developers Live 10/03/2013
KEY
English Casual 2012/05/10
PPTX
Intro to go web assembly
PDF
Nodejs
Cloud App Develop
Vlad zelinschi optimizing the critical rendering path
MongoDB World 2018: Tutorial - MongoDB & NodeJS: Zero to Hero in 80 Minutes
Introduction to NodeJS
MEAN Stack - Google Developers Live 10/03/2013
English Casual 2012/05/10
Intro to go web assembly
Nodejs

What's hot (19)

PDF
Server Side Event Driven Programming
PDF
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
PDF
Client Side rendering Not so Easy
PDF
Front End Development Automation with Grunt
KEY
MongoDB Hadoop DC
PDF
MongoDB Israel June Meetup
PDF
Node.js with Express
PPTX
JS & NodeJS - An Introduction
PPTX
Evolution of java script libraries
KEY
MongoDB Strange Loop 2009
PPTX
Web assembly with go
PPTX
MEAN Stack
PPTX
Introduction to node
KEY
MongoDB EuroPython 2009
PPTX
Javascript basics
PPTX
Nodejs server lesson 3
PPT
Extreme Javascript Minification
PPT
The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Server Side Event Driven Programming
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client Side rendering Not so Easy
Front End Development Automation with Grunt
MongoDB Hadoop DC
MongoDB Israel June Meetup
Node.js with Express
JS & NodeJS - An Introduction
Evolution of java script libraries
MongoDB Strange Loop 2009
Web assembly with go
MEAN Stack
Introduction to node
MongoDB EuroPython 2009
Javascript basics
Nodejs server lesson 3
Extreme Javascript Minification
The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Ad

Viewers also liked (7)

PPT
130127 豚の丸焼き会
PDF
訪日中国人向けインバウンドプロモーション【株式会社トスマック】
PDF
LDD_ミシュランガイドきたみ2012
PPTX
卵の黄身の重さの予測
PPT
私を焼肉屋さんへ連れてって
PDF
浜松市インバウンド協議会主催 「インバウンドセミナー」
PDF
地域リビング プラスワン 第1回コミュニティスペースフォーラム第一部 プレゼン資料
130127 豚の丸焼き会
訪日中国人向けインバウンドプロモーション【株式会社トスマック】
LDD_ミシュランガイドきたみ2012
卵の黄身の重さの予測
私を焼肉屋さんへ連れてって
浜松市インバウンド協議会主催 「インバウンドセミナー」
地域リビング プラスワン 第1回コミュニティスペースフォーラム第一部 プレゼン資料
Ad

Similar to Rapid API development on MongoDB (20)

PDF
sdafdsf
PDF
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
PDF
MEAN Stack WeNode Barcelona Workshop
PPTX
Dev Jumpstart: Build Your First App with MongoDB
PDF
REST Web API with MongoDB
PDF
RESTful Web API and MongoDB go for a pic nic
PDF
MongoDB and Node.js
PPTX
Webinar: Building Your First App in Node.js
PPTX
Webinar: Building Your First App in Node.js
PDF
Building your first app with MongoDB
PDF
MongoDB: a gentle, friendly overview
PDF
MongoDB and the MEAN Stack
KEY
Practical Use of MongoDB for Node.js
PPTX
Dev Jumpstart: Build Your First App with MongoDB
PPT
Meetup#1: 10 reasons to fall in love with MongoDB
PPTX
Node js crash course session 5
KEY
Mongo and node mongo dc 2011
PPTX
Getting Started with MongoDB using Node.js
PDF
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
PDF
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
sdafdsf
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
MEAN Stack WeNode Barcelona Workshop
Dev Jumpstart: Build Your First App with MongoDB
REST Web API with MongoDB
RESTful Web API and MongoDB go for a pic nic
MongoDB and Node.js
Webinar: Building Your First App in Node.js
Webinar: Building Your First App in Node.js
Building your first app with MongoDB
MongoDB: a gentle, friendly overview
MongoDB and the MEAN Stack
Practical Use of MongoDB for Node.js
Dev Jumpstart: Build Your First App with MongoDB
Meetup#1: 10 reasons to fall in love with MongoDB
Node js crash course session 5
Mongo and node mongo dc 2011
Getting Started with MongoDB using Node.js
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Empathic Computing: Creating Shared Understanding
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Encapsulation theory and applications.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Cloud computing and distributed systems.
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Weekly Chronicles - August'25 Week I
Empathic Computing: Creating Shared Understanding
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Encapsulation_ Review paper, used for researhc scholars
Encapsulation theory and applications.pdf
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Cloud computing and distributed systems.
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?

Rapid API development on MongoDB

  • 1. Rapid API development on MongoDB Daniel Hjelm @dhjelm Google+ profile: http://goo.gl/QcLND
  • 2. "the simplest way to build an API" • Open source • Build on Node.js and MongoDB http://deployd.com/ • Common server and client API (dpd.js) • Can sync client states through Web-sockets. • No live reload :(
  • 3. Getting started $ dpd create klmug-dpd You need to specify dbname and host (at least when installing from NPM). Otherwise you just get stuck with a: $ dpd -d starting deployd v0.6.8... Instead do: $ dpd --dbname klmug-dpd --host localhost --mongoPort 27017 starting deployd v0.6.8... listening on port 2403 type help for a list of commands dpd >
  • 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. Pros • Easy to get started • Example projects available on the website • Could be good if you are new to REST • Deployd's realtime capabilities • Not only tied to web application developent
  • 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. 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. Conclusion • Easy to get started with, but ... • I can’t really see it as anything more than a prototyping tool