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
Ad

Recommended

Node JS Express: Steps to Create Restful Web App
Node JS Express: Steps to Create Restful Web App
Edureka!
 
Vue.js is boring - and that's a good thing
Vue.js is boring - and that's a good thing
Joonas Lehtonen
 
Vuejs getting-started - Extended Version
Vuejs getting-started - Extended Version
Murat Doğan
 
Reactjs Introduction - Virtual DOM
Reactjs Introduction - Virtual DOM
Tamir Azrab
 
Vue 2.0 + Vuex Router & Vuex at Vue.js
Vue 2.0 + Vuex Router & Vuex at Vue.js
Takuya Tejima
 
The Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.js
Holly Schinsky
 
ASP.NET MVC, AngularJS CRUD for Azerbaijan Technical University
ASP.NET MVC, AngularJS CRUD for Azerbaijan Technical University
Syed Shanu
 
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Deepu S Nath
 
Vue presentation
Vue presentation
Norbert Nader
 
Vue js for beginner
Vue js for beginner
Chandrasekar G
 
An Introduction to Vuejs
An Introduction to Vuejs
Paddy Lock
 
High Performance Snippets
High Performance Snippets
Steve Souders
 
Intro to vue.js
Intro to vue.js
TechMagic
 
Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6
Noam Kfir
 
Getting started with angular js
Getting started with angular js
Maurice De Beijer [MVP]
 
High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)
Nicholas Zakas
 
Enough with the JavaScript already!
Enough with the JavaScript already!
Nicholas Zakas
 
Service Worker 201 (en)
Service Worker 201 (en)
Chang W. Doh
 
State of jQuery June 2013 - Portland
State of jQuery June 2013 - Portland
dmethvin
 
From MEAN to the MERN Stack
From MEAN to the MERN Stack
Troy Miles
 
Comparing Hot JavaScript Frameworks: AngularJS, Ember.js and React.js - Sprin...
Comparing Hot JavaScript Frameworks: AngularJS, Ember.js and React.js - Sprin...
Matt Raible
 
Frameworks in java
Frameworks in java
Darshan Patel
 
Vuex
Vuex
Asaquzzaman Mishu
 
Design & Development of Web Applications using SpringMVC
Design & Development of Web Applications using SpringMVC
Naresh Chintalcheru
 
Testdrive AngularJS with Spring 4
Testdrive AngularJS with Spring 4
Oliver Wahlen
 
Mvvm knockout vs angular
Mvvm knockout vs angular
Basarat Syed
 
High Performance JavaScript - jQuery Conference SF Bay Area 2010
High Performance JavaScript - jQuery Conference SF Bay Area 2010
Nicholas Zakas
 
Vue.js
Vue.js
BADR
 
Express js
Express js
Manav Prasad
 
Building Web Apps with Express
Building Web Apps with Express
Aaron Stannard
 

More Related Content

What's hot (20)

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

Viewers also liked (20)

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

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

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

More from Edureka! (20)

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

Recently uploaded (20)

OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 

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