SlideShare a Scribd company logo
www.edureka.co/mastering-node-js
View Mastering Node.js course details at www.edureka.co/mastering-node-js
Create Restful Web Application With Node.js
Express Framework
For Queries:
Post on Twitter @edurekaIN: #askEdureka
Post on Facebook /edurekaIN
For more details please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email Us : sales@edureka.co
Slide 2 www.edureka.co/mastering-node-js
Objectives
At the end of the session you will be able to learn:
Introduction of Node.js
What is the use of NPM
Express framework in nodeJS
How to create a Web services
MongoDB configuration
Slide 3 www.edureka.co/mastering-node-js
What is Node.js ?
Node.js is an open source, cross-platform runtime environment for server-side and networking applications
Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft
Windows, Linux, FreeBSD, NonStop and IBM. -- Wikipedia
This is based on Google’s V8 JavaScript Engine
Slide 4 www.edureka.co/mastering-node-js
What is Node.js ? (Contd.)
Guess What ?
» IT’s SINGLE THREADED !!
» No worries about : race conditions, deadlocks and other problems that go with multi-threading.
» “Almost no function in Node directly performs I/O, so the process never blocks. Because nothing blocks,
less-than-expert programmers are able to develop scalable systems.” - (courtesy : nodejs.org)
Event
Loop
Event
Queue
Thread Pool
file system
network
process
other
Slide 5 www.edureka.co/mastering-node-jsSlide 5Slide 5Slide 5
 npm used to stand for Node Package Manager. Now it stands for nothing. Its actually not an acronym. npm is not
a Node.js specific tool any more
 npm is a registry of reusable modules and packages written by various developers
» Yes, you can publish your own npm packages
 There are two ways to install npm packages:
» Locally: To use and depend on the package from your own module or project
» Globally: To use across the system, like a command line tool
 Installing a package locally:
» The package is easily downloaded by just saying npm install <packagename>
» This will create a node_modules directory (if it does not exist yet) and will download the package there
» Once installed you can use it in any js file of your project by saying: var obj = require(‘packagename’);
Basics of Node.js: npm
Slide 6 www.edureka.co/mastering-node-js
Express Framework
 Express framework provides a robust set of features for web and mobile applications.
 Creating robust API is quick and easy
 It provides a thin layer of fundamental web application feature.
 It offers a simple way to get a server up and running.
 Features of Express Framework :
» Router
» Middleware
» Template Engines
» Error Handling
Slide 7 www.edureka.co/mastering-node-jsSlide 7
 By default Express supports the Jade Template Engine for the HTML Views
 What is an JavaScript Template Engine: It is a framework to help bind data to your HTML views
 Why do you need one?
» Helps you easily bind data from the back end with the HTML view
» Helps in bundling HTML code into reusable modules/layouts
» Adds basic conditionals & iterations / loops to your HTML. HTML does not support “If -Else” or “for” loops
 Many JavaScript Template Engines are available: Jade, Handlebars, Hogan, EJS, etc.
Express Framework
Slide 8 www.edureka.co/mastering-node-js
Creating RESTful API
REST API stands for Representational State Transfer
RESTful server dispatches only data for an end point and not a web page.
HTTP methods for RESTful Services:
» GET
» POST
» PUT
» DELETE
Slide 9 www.edureka.co/mastering-node-js
DEMO
Slide 10 www.edureka.co/mastering-node-js
Connecting MongoDB with Node
MongoDB has rapidly grown to become a popular database for web applications and is a perfect fit for Node.JS
applications
We have lot of third party modules to connect with MongoDB
» Mongoose
» MongoDB
» MongoClient
First we have to establish a connection between node app and MongoDB.
Once connection is established, fire the query to perform a CURD operation in DB
Slide 11 www.edureka.co/mastering-node-js
DEMO
Slide 12 www.edureka.co/mastering-node-jsSlide 12
Job Trends
Salaries for Node.js Developers are already in the $60,000 range and much more.
From the graph below : The number of jobs are skyrocketing.
Slide 13 www.edureka.co/mastering-node-js
Course Topics
→ Module 6
» Real-time Communication
→ Module 7
» Forks, Spawns and the Process Module
→ Module 8
» Testing in Node.js
→ Module 9
» Node.js in the Tech World
→ Module 1
» Introduction to Objects in Javascript & Node.js
→ Module 2
» Modules / Packages
→ Module 3
» Events & Streams
→ Module 4
» Network Communication & Web Technology in
Node.js
→ Module 5
» Building a Web Application
Slide 14 www.edureka.co/mastering-node-js
LIVE Online Class
Class Recording in LMS
24/7 Post Class Support
Module Wise Quiz
Project Work
Verifiable Certificate
Course Features
Slide 15 www.edureka.co/mastering-node-js
Questions
Slide 16 www.edureka.co/mastering-node-js

More Related Content

What's hot (20)

PPTX
Vue presentation
Norbert Nader
 
PPTX
Vue js for beginner
Chandrasekar G
 
ODP
An Introduction to Vuejs
Paddy Lock
 
PPTX
High Performance Snippets
Steve Souders
 
PDF
Intro to vue.js
TechMagic
 
PPTX
Angular on ASP.NET MVC 6
Noam Kfir
 
PPT
Getting started with angular js
Maurice De Beijer [MVP]
 
PPTX
High Performance JavaScript (CapitolJS 2011)
Nicholas Zakas
 
PPTX
Enough with the JavaScript already!
Nicholas Zakas
 
PDF
Service Worker 201 (en)
Chang W. Doh
 
PDF
State of jQuery June 2013 - Portland
dmethvin
 
PDF
From MEAN to the MERN Stack
Troy Miles
 
PDF
Comparing Hot JavaScript Frameworks: AngularJS, Ember.js and React.js - Sprin...
Matt Raible
 
PPTX
Frameworks in java
Darshan Patel
 
PDF
Design & Development of Web Applications using SpringMVC
Naresh Chintalcheru
 
PDF
Testdrive AngularJS with Spring 4
Oliver Wahlen
 
PPTX
Mvvm knockout vs angular
Basarat Syed
 
PDF
High Performance JavaScript - jQuery Conference SF Bay Area 2010
Nicholas Zakas
 
PDF
Vue.js
BADR
 
Vue presentation
Norbert Nader
 
Vue js for beginner
Chandrasekar G
 
An Introduction to Vuejs
Paddy Lock
 
High Performance Snippets
Steve Souders
 
Intro to vue.js
TechMagic
 
Angular on ASP.NET MVC 6
Noam Kfir
 
Getting started with angular js
Maurice De Beijer [MVP]
 
High Performance JavaScript (CapitolJS 2011)
Nicholas Zakas
 
Enough with the JavaScript already!
Nicholas Zakas
 
Service Worker 201 (en)
Chang W. Doh
 
State of jQuery June 2013 - Portland
dmethvin
 
From MEAN to the MERN Stack
Troy Miles
 
Comparing Hot JavaScript Frameworks: AngularJS, Ember.js and React.js - Sprin...
Matt Raible
 
Frameworks in java
Darshan Patel
 
Design & Development of Web Applications using SpringMVC
Naresh Chintalcheru
 
Testdrive AngularJS with Spring 4
Oliver Wahlen
 
Mvvm knockout vs angular
Basarat Syed
 
High Performance JavaScript - jQuery Conference SF Bay Area 2010
Nicholas Zakas
 
Vue.js
BADR
 

Viewers also liked (20)

PPTX
Express js
Manav Prasad
 
PPTX
Building Web Apps with Express
Aaron Stannard
 
PPTX
Node.js Express
Eyal Vardi
 
PDF
NodeJS for Beginner
Apaichon Punopas
 
PPTX
Diving into Node with Express and Mongo
Axilis
 
PDF
Node, express & sails
Brian Shannon
 
PDF
Expressjs basic to advance, power by Node.js
Caesar Chi
 
PDF
Express node js
Yashprit Singh
 
PPTX
MongoDB Days UK: Building Apps with the MEAN Stack
MongoDB
 
PDF
NodeJS: the good parts? A skeptic’s view (devnexus2014)
Chris Richardson
 
PDF
NodeJS for Novices - 28/Oct/13 - Winnipeg, MB
David Wesst
 
PDF
Communication in Node.js
Edureka!
 
PDF
(C)NodeJS
Jackson Tian
 
PPT
Building your first Node app with Connect & Express
Christian Joudrey
 
PDF
NodeJS: the good parts? A skeptic’s view (oredev, oredev2013)
Chris Richardson
 
PPTX
Express yourself
Yaniv Rodenski
 
ODP
Asynchronous I/O in NodeJS - new standard or challenges?
Dinh Pham
 
PPTX
NodeJS guide for beginners
Enoch Joshua
 
PDF
Testing NodeJS Security
Jose Manuel Ortega Candel
 
PPTX
Node js meetup
Ansuman Roy
 
Express js
Manav Prasad
 
Building Web Apps with Express
Aaron Stannard
 
Node.js Express
Eyal Vardi
 
NodeJS for Beginner
Apaichon Punopas
 
Diving into Node with Express and Mongo
Axilis
 
Node, express & sails
Brian Shannon
 
Expressjs basic to advance, power by Node.js
Caesar Chi
 
Express node js
Yashprit Singh
 
MongoDB Days UK: Building Apps with the MEAN Stack
MongoDB
 
NodeJS: the good parts? A skeptic’s view (devnexus2014)
Chris Richardson
 
NodeJS for Novices - 28/Oct/13 - Winnipeg, MB
David Wesst
 
Communication in Node.js
Edureka!
 
(C)NodeJS
Jackson Tian
 
Building your first Node app with Connect & Express
Christian Joudrey
 
NodeJS: the good parts? A skeptic’s view (oredev, oredev2013)
Chris Richardson
 
Express yourself
Yaniv Rodenski
 
Asynchronous I/O in NodeJS - new standard or challenges?
Dinh Pham
 
NodeJS guide for beginners
Enoch Joshua
 
Testing NodeJS Security
Jose Manuel Ortega Candel
 
Node js meetup
Ansuman Roy
 
Ad

Similar to Create Restful Web Application With Node.js Express Framework (20)

PPTX
Node JS Express : Steps to Create Restful Web App
Edureka!
 
PDF
Day In A Life Of A Node.js Developer
Edureka!
 
PDF
Day in a life of a node.js developer
Edureka!
 
PDF
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
Edureka!
 
PDF
Node.js Express Tutorial | Node.js Tutorial For Beginners | Node.js + Expres...
Edureka!
 
PDF
NodeJS : Communication and Round Robin Way
Edureka!
 
PPTX
Node.js & Express.js Unleashed
Elewayte
 
PDF
Introduction to Node.js
Aaron Rosenberg
 
PPTX
Nodejs web service for starters
Bruce Li
 
PDF
Introduction to node js - From "hello world" to deploying on azure
Colin Mackay
 
PDF
An introduction to Node.js
Kasey McCurdy
 
PDF
Node.js for beginner
Sarunyhot Suwannachoti
 
PDF
Node.js Course 1 of 2 - Introduction and first steps
Manuel Eusebio de Paz Carmona
 
PDF
Learning Nodejs For Net Developers Harry Cummings
coeldiad
 
PPTX
[Blibli Brown Bag] Nodejs - The Other Side of Javascript
Irfan Maulana
 
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
PPTX
Introduction Node.js
Erik van Appeldoorn
 
PDF
Download full ebook of Learning Node Shelley Powers instant download pdf
zeitsloyerqy
 
PPTX
NodeJS - Server Side JS
Ganesh Kondal
 
PDF
Node JS Roadmap for Beginners By Scholarhat PDF
Scholarhat
 
Node JS Express : Steps to Create Restful Web App
Edureka!
 
Day In A Life Of A Node.js Developer
Edureka!
 
Day in a life of a node.js developer
Edureka!
 
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
Edureka!
 
Node.js Express Tutorial | Node.js Tutorial For Beginners | Node.js + Expres...
Edureka!
 
NodeJS : Communication and Round Robin Way
Edureka!
 
Node.js & Express.js Unleashed
Elewayte
 
Introduction to Node.js
Aaron Rosenberg
 
Nodejs web service for starters
Bruce Li
 
Introduction to node js - From "hello world" to deploying on azure
Colin Mackay
 
An introduction to Node.js
Kasey McCurdy
 
Node.js for beginner
Sarunyhot Suwannachoti
 
Node.js Course 1 of 2 - Introduction and first steps
Manuel Eusebio de Paz Carmona
 
Learning Nodejs For Net Developers Harry Cummings
coeldiad
 
[Blibli Brown Bag] Nodejs - The Other Side of Javascript
Irfan Maulana
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
Introduction Node.js
Erik van Appeldoorn
 
Download full ebook of Learning Node Shelley Powers instant download pdf
zeitsloyerqy
 
NodeJS - Server Side JS
Ganesh Kondal
 
Node JS Roadmap for Beginners By Scholarhat PDF
Scholarhat
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 

Recently uploaded (20)

PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 

Create Restful Web Application With Node.js Express Framework

  • 1. www.edureka.co/mastering-node-js View Mastering Node.js course details at www.edureka.co/mastering-node-js Create Restful Web Application With Node.js Express Framework For Queries: Post on Twitter @edurekaIN: #askEdureka Post on Facebook /edurekaIN For more details please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email Us : [email protected]
  • 2. Slide 2 www.edureka.co/mastering-node-js Objectives At the end of the session you will be able to learn: Introduction of Node.js What is the use of NPM Express framework in nodeJS How to create a Web services MongoDB configuration
  • 3. Slide 3 www.edureka.co/mastering-node-js What is Node.js ? Node.js is an open source, cross-platform runtime environment for server-side and networking applications Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop and IBM. -- Wikipedia This is based on Google’s V8 JavaScript Engine
  • 4. Slide 4 www.edureka.co/mastering-node-js What is Node.js ? (Contd.) Guess What ? » IT’s SINGLE THREADED !! » No worries about : race conditions, deadlocks and other problems that go with multi-threading. » “Almost no function in Node directly performs I/O, so the process never blocks. Because nothing blocks, less-than-expert programmers are able to develop scalable systems.” - (courtesy : nodejs.org) Event Loop Event Queue Thread Pool file system network process other
  • 5. Slide 5 www.edureka.co/mastering-node-jsSlide 5Slide 5Slide 5  npm used to stand for Node Package Manager. Now it stands for nothing. Its actually not an acronym. npm is not a Node.js specific tool any more  npm is a registry of reusable modules and packages written by various developers » Yes, you can publish your own npm packages  There are two ways to install npm packages: » Locally: To use and depend on the package from your own module or project » Globally: To use across the system, like a command line tool  Installing a package locally: » The package is easily downloaded by just saying npm install <packagename> » This will create a node_modules directory (if it does not exist yet) and will download the package there » Once installed you can use it in any js file of your project by saying: var obj = require(‘packagename’); Basics of Node.js: npm
  • 6. Slide 6 www.edureka.co/mastering-node-js Express Framework  Express framework provides a robust set of features for web and mobile applications.  Creating robust API is quick and easy  It provides a thin layer of fundamental web application feature.  It offers a simple way to get a server up and running.  Features of Express Framework : » Router » Middleware » Template Engines » Error Handling
  • 7. Slide 7 www.edureka.co/mastering-node-jsSlide 7  By default Express supports the Jade Template Engine for the HTML Views  What is an JavaScript Template Engine: It is a framework to help bind data to your HTML views  Why do you need one? » Helps you easily bind data from the back end with the HTML view » Helps in bundling HTML code into reusable modules/layouts » Adds basic conditionals & iterations / loops to your HTML. HTML does not support “If -Else” or “for” loops  Many JavaScript Template Engines are available: Jade, Handlebars, Hogan, EJS, etc. Express Framework
  • 8. Slide 8 www.edureka.co/mastering-node-js Creating RESTful API REST API stands for Representational State Transfer RESTful server dispatches only data for an end point and not a web page. HTTP methods for RESTful Services: » GET » POST » PUT » DELETE
  • 10. Slide 10 www.edureka.co/mastering-node-js Connecting MongoDB with Node MongoDB has rapidly grown to become a popular database for web applications and is a perfect fit for Node.JS applications We have lot of third party modules to connect with MongoDB » Mongoose » MongoDB » MongoClient First we have to establish a connection between node app and MongoDB. Once connection is established, fire the query to perform a CURD operation in DB
  • 12. Slide 12 www.edureka.co/mastering-node-jsSlide 12 Job Trends Salaries for Node.js Developers are already in the $60,000 range and much more. From the graph below : The number of jobs are skyrocketing.
  • 13. Slide 13 www.edureka.co/mastering-node-js Course Topics → Module 6 » Real-time Communication → Module 7 » Forks, Spawns and the Process Module → Module 8 » Testing in Node.js → Module 9 » Node.js in the Tech World → Module 1 » Introduction to Objects in Javascript & Node.js → Module 2 » Modules / Packages → Module 3 » Events & Streams → Module 4 » Network Communication & Web Technology in Node.js → Module 5 » Building a Web Application
  • 14. Slide 14 www.edureka.co/mastering-node-js LIVE Online Class Class Recording in LMS 24/7 Post Class Support Module Wise Quiz Project Work Verifiable Certificate Course Features