SlideShare a Scribd company logo
ORM over REST in 
NodeJS 
prashant@jombay.com
Connect with me here 
@prcongithub 
@prchaudhari_007 
@prashanr.chaudhari89 
(prashan‘r’ is correct)
NodeJS newbie 
Tried hands on ExpressJS, Socket.IO 
Understands basics of a RESTful applications 
with NodeJS 
Migrated RoR based Front-End to NodeJS
Service Oriented Architecture 
API(REST) 
(JRuby on Rails) 
Database 
Front-End 
(NodeJS) 
Front-End 
(NodeJS) 
Front-End 
(RoR) 
Redis 
Browser 
HER
Accessing RESTful Resources 
How do we do it in now? 
Using HTTP? 
http.request(params,callback);
How about this? 
User.where(name: “Prashant”) 
HTTP GET http://api.example.com/users?name=Prashant 
===> [{id: 1, name: “Prashant”,email: “prashant@jombay. 
com”}] 
Note.where(user_id: 1) 
### HTTP GET http://api.example.com/notes?user_id=1 
===> [{ id: 1, content: “JSFoo2014”, user_id: 1 }]
And probably this 
var u = new User(); 
u.name = “Prashant” 
u.save 
# HTTP POST http://api.yourdomain.com/users 
payload: { name: “Prashant” } 
===> {id: 1, name: “Prashant”}
Introducing Node-Vger 
Inspired by “HER” (Not some girl) 
https://github.com/remiprev/her 
Novice attempt to achieve something like this in 
NodeJS 
https://github.com/prcongithub/node-vger 
Test App: https://github.com/prcongithub/node-vger- 
test-app
Challenges 
Managing Authorization and Authentication 
Active Relation like scopes 
Dealing with associations 
Support for Middlewares
Thank You! 
Get in touch!

More Related Content

PDF
Nodejs first class
PPTX
Frisby.js - Give it a Toss
PPT
JS everywhere 2011
PPT
Building your first Node app with Connect & Express
PPTX
Express js
PDF
Express node js
PDF
Android webservices
PPT
Node.js
Nodejs first class
Frisby.js - Give it a Toss
JS everywhere 2011
Building your first Node app with Connect & Express
Express js
Express node js
Android webservices
Node.js

What's hot (9)

PDF
Comredis
PPTX
Event-driven IO server-side JavaScript environment based on V8 Engine
PPTX
Scalable network applications, event-driven - Node JS
PPTX
Java script at backend nodejs
PPT
RESTful API In Node Js using Express
PDF
Standardized API Development using Node.js
PPTX
Introduction to node.js GDD
PPTX
Building WebSocket and Server Side Events Applications using Atmosphere
PPTX
Running Node Applications on iOS and Android
Comredis
Event-driven IO server-side JavaScript environment based on V8 Engine
Scalable network applications, event-driven - Node JS
Java script at backend nodejs
RESTful API In Node Js using Express
Standardized API Development using Node.js
Introduction to node.js GDD
Building WebSocket and Server Side Events Applications using Atmosphere
Running Node Applications on iOS and Android
Ad

Similar to ORM over REST in NodeJS (20)

PDF
Introduction to Node.js
PDF
Node.js Course 2 of 2 - Advanced techniques
PDF
Clients in control: building demand-driven systems with Om Next
PPTX
Develop a Basic REST API from Scratch Using TDD with Val Karpov
PPTX
Develop a Basic REST API from Scratch Using TDD with Val Karpov
PDF
GraphQL with .NET Core Microservices.pdf
PPTX
GraphQL - an elegant weapon... for more civilized age
PDF
Intro to node.js web apps
PDF
GraphQL in an Age of REST
PPT
week_05h
PDF
Managing GraphQL servers with AWS Fargate & Prisma Cloud
PDF
TDD a REST API With Node.js and MongoDB
PDF
Developing and Testing a MongoDB and Node.js REST API
PDF
Writing RESTful web services using Node.js
PPTX
Local SQLite Database with Node for beginners
PPTX
Create Rest API in Nodejs
PDF
GraphQL and its schema as a universal layer for database access
PDF
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
PPTX
Introduction to Hydra
Introduction to Node.js
Node.js Course 2 of 2 - Advanced techniques
Clients in control: building demand-driven systems with Om Next
Develop a Basic REST API from Scratch Using TDD with Val Karpov
Develop a Basic REST API from Scratch Using TDD with Val Karpov
GraphQL with .NET Core Microservices.pdf
GraphQL - an elegant weapon... for more civilized age
Intro to node.js web apps
GraphQL in an Age of REST
week_05h
Managing GraphQL servers with AWS Fargate & Prisma Cloud
TDD a REST API With Node.js and MongoDB
Developing and Testing a MongoDB and Node.js REST API
Writing RESTful web services using Node.js
Local SQLite Database with Node for beginners
Create Rest API in Nodejs
GraphQL and its schema as a universal layer for database access
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
Introduction to Hydra
Ad

Recently uploaded (20)

PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
737-MAX_SRG.pdf student reference guides
PPT
Project quality management in manufacturing
PPTX
Geodesy 1.pptx...............................................
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
DOCX
573137875-Attendance-Management-System-original
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Artificial Intelligence
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Construction Project Organization Group 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Automation-in-Manufacturing-Chapter-Introduction.pdf
Sustainable Sites - Green Building Construction
737-MAX_SRG.pdf student reference guides
Project quality management in manufacturing
Geodesy 1.pptx...............................................
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
III.4.1.2_The_Space_Environment.p pdffdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
573137875-Attendance-Management-System-original
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Artificial Intelligence
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

ORM over REST in NodeJS

  • 1. ORM over REST in NodeJS prashant@jombay.com
  • 2. Connect with me here @prcongithub @prchaudhari_007 @prashanr.chaudhari89 (prashan‘r’ is correct)
  • 3. NodeJS newbie Tried hands on ExpressJS, Socket.IO Understands basics of a RESTful applications with NodeJS Migrated RoR based Front-End to NodeJS
  • 4. Service Oriented Architecture API(REST) (JRuby on Rails) Database Front-End (NodeJS) Front-End (NodeJS) Front-End (RoR) Redis Browser HER
  • 5. Accessing RESTful Resources How do we do it in now? Using HTTP? http.request(params,callback);
  • 6. How about this? User.where(name: “Prashant”) HTTP GET http://api.example.com/users?name=Prashant ===> [{id: 1, name: “Prashant”,email: “prashant@jombay. com”}] Note.where(user_id: 1) ### HTTP GET http://api.example.com/notes?user_id=1 ===> [{ id: 1, content: “JSFoo2014”, user_id: 1 }]
  • 7. And probably this var u = new User(); u.name = “Prashant” u.save # HTTP POST http://api.yourdomain.com/users payload: { name: “Prashant” } ===> {id: 1, name: “Prashant”}
  • 8. Introducing Node-Vger Inspired by “HER” (Not some girl) https://github.com/remiprev/her Novice attempt to achieve something like this in NodeJS https://github.com/prcongithub/node-vger Test App: https://github.com/prcongithub/node-vger- test-app
  • 9. Challenges Managing Authorization and Authentication Active Relation like scopes Dealing with associations Support for Middlewares
  • 10. Thank You! Get in touch!