Upload
vivochalabs
View
299
Download
1
Embed Size (px)
DESCRIPTION
Get the code at: github.com/0xfede/lunch-o-clock A quick introduction to MongoDB and Node.js and a sample application on how to use a rest API by Federico Pinna at Vivocha Tech Evenings 2014
Citation preview
Building a REST API with Node.js and MongoDB
Federico Pinna @0xfede
Agenda
• MongoDB intro
• 2-minute installation
• Basic operations
• Geospatial queries
• 4-minute replication
• Node.js intro
• NPM and package.json
• Express.js intro
• Connecting to MongoDB
• Basic REST API
MongoDB
• NoSQL
• Highly Available
• Scalable
• Stable
• Fast
• Sharding & Replication
• Aggregation
• Geospatial Queries
• GridFS
• Pub/Sub
MongoDB
Ok, it’s play time :-)
Node.js
• Server side Javascript
• Google V8
• Event driven
• Non-blocking I/O
• Scalable & Stable
• Modular
• Big Community
• Made of Awesome
Node.js• nodejs.org
• npmjs.org
• socket.io
• expressjs.com
• passportjs.org
• underscorejs.com
• github.com/caolan/async
• github.com/mikeal/request
My all time favourites :-)
Node.js
And it’s play time again :-)
!
github.com/0xfede/lunch-o-clock
Q & A & Beerhttp://facebook.com/VivochaLabs