KEMBAR78
Create simple api using node js | PPTX
Create Simple API Using NodeJS
Techtalk #32
Node.js is a platform built on Chrome's JavaScript runtime for easily
building fast, scalable network applications. Node.js uses an event-
driven, non-blocking I/O model that makes it lightweight and efficient,
perfect for data-intensive real-time applications that run across
distributed devices.
- nodejs.org
Success Story
Half the time with fewer developers
to
Built a Node Version of a Java app
https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/
Easly serving 50,000 request/minute
Handling the same amount of traffic as before but
with less hardware
http://slideshare.net/joemccann/the-business-case-for-node
Application Stack
RESTful API
ExpressJS
Controller
Mongoskin
MongoDB
Key-Value Handler
Memory caching
Download
http://nodejs.org/download/
package.json
Struktur Folder
app.js
Route HTTP Verb Desc
/api/takjil GET Get all takjil
/api/takjil POST Create takjil
/api/takjil/:id GET Get single takjil
/api/takjil/:id PUT Update a takjil info
/api/takjil/:id DELETE Delete a takjil
Routes
https://github.com/drieanto/nodejs-api

Create simple api using node js