MongoDB + Node.JS + EPAM ROAD
-
Upload
szilveszter-molnar -
Category
Software
-
view
658 -
download
2
Transcript of MongoDB + Node.JS + EPAM ROAD
MongoDB, Node.JS + EPAM ROADBackend és iOS kliens könnyedén
Molnár Szilveszter Epam Systems
moszinet
Why ?
Topics we will cover• Architecture
• Build the Backend
• Build the iOS app
• Summary
The App
MongoDB• Open source
• High performance, high availability, automatic scaling
• Document database
{ name: “Szilveszter Molnar”, age: 37, groups: [ “mobileDev”, “iOS”, “Android”, “WP8” ] }
DEMO MongoDB
Node.JS• A platform built on Google’s Open Source V8 engine
• event-driven, non-blocking I/O model
• JavaScript based
var http = require(‘http');http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': ‘text/plain'}); res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
Express• Express: Node.JS Web Application Framework
• npm install express
Routing
// respond with "Hello World!" on the homepage app.get('/', function (req, res) { res.send('Hello World!'); })
// accept POST request on the homepage app.post('/', function (req, res) { res.send('Got a POST request');})
// accept PUT request at /userapp.put('/user', function (req, res) { res.send('Got a PUT request at /user'); })
// accept DELETE request at /userapp.delete('/user', function (req, res) { res.send('Got a DELETE request at /user'); })
Mongoose• MongoDB object modeling framework
• npm install mongoose
DEMO Basic Car repository
EPAM ROAD
Rapid Objective-C Applications Development• Features
• Support for attributes (annotations), reflection
• Services (service locator pattern)
• Serialization (JSON, XML)
• Web Service client w/ zero-coding using attributes
• CocoaPods integration
Attributes
RF_ATTRIBUTE(RFSerializable)@interface RDCar : NSObject { … }
RF_ATTRIBUTE(RFWebServiceCall, method = @"GET", relativePath = @"/cars", prototypeClass=[RDCar class])- (id)carListWithSuccess:failure:;
DEMO
Resources
• github.com/moszi/MongoNodeRoad
• server install script, backend + iOS source code
• github.com/epam/road-ios-framework
• mongodb.org
• nodejs.org, expressjs.com, mongoosejs.com
Köszönöm!
Molnár Szilveszter Epam Systems
moszinet