9
Building a REST API with Node.js and MongoDB Federico Pinna @0xfede

Building a REST API with Node.js and MongoDB

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

Page 1: Building a REST API with Node.js and MongoDB

Building a REST API with Node.js and MongoDB

Federico Pinna @0xfede

Page 2: Building a REST API with Node.js and MongoDB

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

Page 3: Building a REST API with Node.js and MongoDB

MongoDB

• NoSQL

• Highly Available

• Scalable

• Stable

• Fast

• Sharding & Replication

• Aggregation

• Geospatial Queries

• GridFS

• Pub/Sub

Page 4: Building a REST API with Node.js and MongoDB

MongoDB

• try.mongodb.org

Page 5: Building a REST API with Node.js and MongoDB

MongoDB

Ok, it’s play time :-)

Page 6: Building a REST API with Node.js and MongoDB

Node.js

• Server side Javascript

• Google V8

• Event driven

• Non-blocking I/O

• Scalable & Stable

• Modular

• Big Community

• Made of Awesome

Page 7: Building a REST API with Node.js and MongoDB

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 :-)

Page 8: Building a REST API with Node.js and MongoDB

Node.js

And it’s play time again :-)

!

github.com/0xfede/lunch-o-clock

Page 9: Building a REST API with Node.js and MongoDB

Q & A & Beerhttp://facebook.com/VivochaLabs