SlideShare a Scribd company logo
1
Building Modern Web Apps with MEANStack
By Suresh Patidar
E
2
Who am I?
{
"name":"Suresh Patidar",
"before":"Worked with ClearTrail Technologies and L&T",
"today":"UI Architect @ Calsoft",
"Geek":[
"Writes code for Frontend and Backend",
"Works on UI/UX aspect",
"Create Application Architecture and Design"
],
"languages-and-frameworks":[
"JavaScript, NodeJS, AngularJS, Backbone, JQuery…",
"HTML, CSS, SASS, LESS, Bootstrap etc.",
"Java, .NET (C#), Spring MVC",
"Oracle, MySql, MongoDB"
],
"specialized-in":[
"Application Architecture & Design",
"MEAN Stack/Full Stack Application Development",
"Web development/Architecture",
"Mobile Development"
]
}
3
Agenda
 Structure of web application
 The requirements for a Modern Web App
 What is MEAN stack?
 Who uses MEAN stack?
 How it is different from LAMP stack?
 The MEAN Stack Architecture and
Components
 So why Go MEAN?
 Value of the MEAN stack
 MEAN Security
 What’s bad about MEAN approach?
 Future of MEAN stack
 Any Questions?
4
Structure of Web Application
5
Web Application
6
Frontend vs. Backend
7
Requirements for a modern web app
 Customers want fast web sites/fast response time
 No page reloads
 Enterprises want to go virtual
• One box + Several Virtual Images = Shared Hardware
• Systems with minimal memory footprint/overhead needed
 As many concurrent requests as possible
 Only load resources when needed (conditional loading)
 Most of the data must come from a slim REST-API
 Mobile friendly/Responsive UIs
 Automated build for backend AND frontend
• Including check for coding conventions, testing,…
• Integration in company’s continuous integration platform
8
Front end vs. Back end
Introduction to the
MEAN Stack
9
What is MEAN stack?
“MEAN is a fullstack JavaScript platform for modern web applications”
– Mean.io
10
Who uses MEAN stack?
and many more…
11
How it is different from LAMP stack?
 Building web application with a LAMP approach
• Server-side language: PHP, Perl, JSP, ASP…
• Server-side container: Tomcat, Jboss, Jetty, Apache,…
• Server-side templating: HAML, Moustache,…
• Server-side MVC framework: Spring, Struts,…
• Client-side JavaScript: jQuery, AngularJS, BackboneJS
• > 5 different technologies/languages
 Building web applications with a MEAN approach
• JavaScript and JSON
• That’s it!
12
The MEAN architecture
13
AngularJS
Our app’s entire frontend
 Open source, maintained by Google
 Client Side MVC (MVVM) framework
 Excellent data bindings
 Very modular and extensible
 Great browser support (> IE8)
 Well documented
 Easy to test
14
Node.js
Lightweight web server framework
 Released in 2009 by Ryan Dahi
 Written in C/C++
 Built on Google Chrome’s V8 JavaScript engine
 Extremely lightweight and efficient
 What JavaScript has done for the web browser,
Node.js is doing for backend server
 Does module loading and Asynchronous IO
 Single threaded, One node process per CPU
 Easily scalable (just create a cluster)
 Great community and well maintained
15
Express
Create our routes and our API
 A simple, minimal, robust and flexible web
application framework for Node.js
 Gives everything we would expect to build a
modern web server
 Abstracts away a lot of low level logic (e.g. for
HTTP requests, SSL etc.)
 Helps organize your Node app into an MVC
structure
 Easy to implement REST API and session
management
 Middleware, routing, templating, static-files,
cookies, mime-types and much much more
16
MongoDB
Our data store
 A simple and scalable document based top
NoSQL Database
 Open Source, maintained by MongoDB
 JSON like syntax and model persistence
 Key-value stores
 Replication and High-Availability
 Flexible Schemas, Full Index support, Query
Selectors, Sharding and much much more
17
MEAN Stack Language and Format Usage
18
MEAN Stack Concepts
19
Advantages of MEAN Stack over conventional
Technology Stack
20
MEAN Stack (Full Stack) Development Team
21
So why Go MEAN?
 It is 100% free, Open Source and Web Standards
 JavaScript all the way down
 Consistent models across stack (backend to frontend and
back)
 Consistent best practices across stack
 Use a uniform language throughout your stack
• JavaScript (the language of the web)
• JSON (the data format of the web)
• No conversion needed for the database
 Very low memory footprint/overhead
 Leverage JavaScript’s popularity
 Huge community
22
Value of MEAN stack
 Universal end-to-end workflow
 Focus on speed of development
 Flexible pieces
23
MEAN Security
 It’s as insecure as you code it 
 It’s JavaScript so you have to be careful
• Always use “strict” mode
• Always declare variables
• Always throw all errors
• Always handle all callbacks (e.g. Success AND Error)
• Use patterns for visibility (e.g. Module pattern)
• Do static code analysis (JSHint/JSLint)
• Always encode untrusted data
 Use Angular sanitizer ($sanitize) to sanitize an HTML string by
stripping all potentially dangerous tokens
 And of course – never run any application as root! 
 Test, Test and Test
24
What’s bad about this “MEAN” approach
 For those who don’t like JavaScript – Its going to be killing you 
 There is still no general JS coding guidelines
 SPA need a new way of thinking
• The browser is your platform
 MongoDB is not as robust as an SQL Server is
• This security is what they sacrifice to gain speed
 We need to take care of rollbacks our self (2-Phase-Commit)
• ACID -> Possible but part of the driver/client application
 It’s hard to find specialists that are no hipsters
• Have the big picture/architecture for enterprise in mind
 It make sense to also have a look at Grunt, Yeoman and Bower in
order to create good developer experience
 Once you have created the first application with this technology,
it’s hard to go back to the old approach
25
Future of MEAN Stack
26
Future of MEAN Stack
Checkout http://stackoverflow.com/research/developer-survey-2016 for latest survey results
27
Ad

More Related Content

What's hot (20)

Building your first MEAN application
Building your first MEAN applicationBuilding your first MEAN application
Building your first MEAN application
FITC
 
Mern stack developement
Mern stack developementMern stack developement
Mern stack developement
kalyankumar836878
 
Mean PPT
Mean PPTMean PPT
Mean PPT
Harendra Singh Bisht
 
MEAN Stack
MEAN StackMEAN Stack
MEAN Stack
Dotitude
 
The MEAN Stack
The MEAN StackThe MEAN Stack
The MEAN Stack
Md. Ziaul Haq
 
Rapid Application Development with MEAN Stack
Rapid Application Development with MEAN StackRapid Application Development with MEAN Stack
Rapid Application Development with MEAN Stack
Avinash Kaza
 
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
Hariharan Ganesan
 
MEAN Stack
MEAN Stack MEAN Stack
MEAN Stack
RoshanTak1
 
Kick start your journey as mern stack developer
Kick start your journey as mern stack developerKick start your journey as mern stack developer
Kick start your journey as mern stack developer
ShrutiPanjwani1
 
Part One: Building Web Apps with the MERN Stack
Part One: Building Web Apps with the MERN StackPart One: Building Web Apps with the MERN Stack
Part One: Building Web Apps with the MERN Stack
MongoDB
 
Mean stack
Mean stackMean stack
Mean stack
RavikantGautam8
 
MEAN stack
MEAN stackMEAN stack
MEAN stack
Iryney Baran
 
MongoDB and the MEAN Stack
MongoDB and the MEAN StackMongoDB and the MEAN Stack
MongoDB and the MEAN Stack
MongoDB
 
Building an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stackBuilding an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stack
divyapisces
 
Mean full stack development
Mean full stack developmentMean full stack development
Mean full stack development
Scott Lee
 
Full stack development tools & technologies
Full stack development tools & technologiesFull stack development tools & technologies
Full stack development tools & technologies
kumar satyam
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
Surya937648
 
The MEAN stack - SoCalCodeCamp - june 29th 2014
The MEAN stack - SoCalCodeCamp - june 29th 2014The MEAN stack - SoCalCodeCamp - june 29th 2014
The MEAN stack - SoCalCodeCamp - june 29th 2014
Simona Clapan
 
What is Mean Stack Development ?
What is Mean Stack Development ?What is Mean Stack Development ?
What is Mean Stack Development ?
Balajihope
 
You know what iMEAN? Using MEAN stack for application dev on Informix
You know what iMEAN? Using MEAN stack for application dev on InformixYou know what iMEAN? Using MEAN stack for application dev on Informix
You know what iMEAN? Using MEAN stack for application dev on Informix
Keshav Murthy
 
Building your first MEAN application
Building your first MEAN applicationBuilding your first MEAN application
Building your first MEAN application
FITC
 
MEAN Stack
MEAN StackMEAN Stack
MEAN Stack
Dotitude
 
Rapid Application Development with MEAN Stack
Rapid Application Development with MEAN StackRapid Application Development with MEAN Stack
Rapid Application Development with MEAN Stack
Avinash Kaza
 
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
Hariharan Ganesan
 
Kick start your journey as mern stack developer
Kick start your journey as mern stack developerKick start your journey as mern stack developer
Kick start your journey as mern stack developer
ShrutiPanjwani1
 
Part One: Building Web Apps with the MERN Stack
Part One: Building Web Apps with the MERN StackPart One: Building Web Apps with the MERN Stack
Part One: Building Web Apps with the MERN Stack
MongoDB
 
MongoDB and the MEAN Stack
MongoDB and the MEAN StackMongoDB and the MEAN Stack
MongoDB and the MEAN Stack
MongoDB
 
Building an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stackBuilding an E-commerce website in MEAN stack
Building an E-commerce website in MEAN stack
divyapisces
 
Mean full stack development
Mean full stack developmentMean full stack development
Mean full stack development
Scott Lee
 
Full stack development tools & technologies
Full stack development tools & technologiesFull stack development tools & technologies
Full stack development tools & technologies
kumar satyam
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
Surya937648
 
The MEAN stack - SoCalCodeCamp - june 29th 2014
The MEAN stack - SoCalCodeCamp - june 29th 2014The MEAN stack - SoCalCodeCamp - june 29th 2014
The MEAN stack - SoCalCodeCamp - june 29th 2014
Simona Clapan
 
What is Mean Stack Development ?
What is Mean Stack Development ?What is Mean Stack Development ?
What is Mean Stack Development ?
Balajihope
 
You know what iMEAN? Using MEAN stack for application dev on Informix
You know what iMEAN? Using MEAN stack for application dev on InformixYou know what iMEAN? Using MEAN stack for application dev on Informix
You know what iMEAN? Using MEAN stack for application dev on Informix
Keshav Murthy
 

Viewers also liked (19)

Introduction to Modern and Emerging Web Technologies
Introduction to Modern and Emerging Web TechnologiesIntroduction to Modern and Emerging Web Technologies
Introduction to Modern and Emerging Web Technologies
Suresh Patidar
 
Knowledge share about scalable application architecture
Knowledge share about scalable application architectureKnowledge share about scalable application architecture
Knowledge share about scalable application architecture
AHM Pervej Kabir
 
Architecture of a Modern Web App
Architecture of a Modern Web AppArchitecture of a Modern Web App
Architecture of a Modern Web App
scothis
 
Mean stack
Mean stackMean stack
Mean stack
Eng Chrispinus Onyancha
 
SFO15-TR6: Server Ecosystem Day (Part 6A)
SFO15-TR6: Server Ecosystem Day (Part 6A) SFO15-TR6: Server Ecosystem Day (Part 6A)
SFO15-TR6: Server Ecosystem Day (Part 6A)
Linaro
 
Playing nice with the MEAN stack
Playing nice with the MEAN stackPlaying nice with the MEAN stack
Playing nice with the MEAN stack
Aspenware
 
Biological warfare
Biological warfareBiological warfare
Biological warfare
Timiresh Das
 
Building Scalable Web Applications Using Microservices Architecture and NodeJ...
Building Scalable Web Applications Using Microservices Architecture and NodeJ...Building Scalable Web Applications Using Microservices Architecture and NodeJ...
Building Scalable Web Applications Using Microservices Architecture and NodeJ...
NodejsFoundation
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
Directi Group
 
Biological warfare
Biological warfareBiological warfare
Biological warfare
Neelesh Vaish
 
Facebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challengeFacebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challenge
Cristina Munoz
 
Facebook Architecture - Breaking it Open
Facebook Architecture - Breaking it OpenFacebook Architecture - Breaking it Open
Facebook Architecture - Breaking it Open
HARMAN Services
 
Quadratic Formula Presentation
Quadratic Formula PresentationQuadratic Formula Presentation
Quadratic Formula Presentation
anjuli1580
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications
David Mitzenmacher
 
Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture
AppDynamics
 
Latest Trends in Web Technologies
Latest Trends in Web TechnologiesLatest Trends in Web Technologies
Latest Trends in Web Technologies
bryanbibat
 
Node.js 101 with Rami Sayar
Node.js 101 with Rami SayarNode.js 101 with Rami Sayar
Node.js 101 with Rami Sayar
FITC
 
facebook architecture for 600M users
facebook architecture for 600M usersfacebook architecture for 600M users
facebook architecture for 600M users
Jongyoon Choi
 
29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview Questions29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview Questions
Arc & Codementor
 
Introduction to Modern and Emerging Web Technologies
Introduction to Modern and Emerging Web TechnologiesIntroduction to Modern and Emerging Web Technologies
Introduction to Modern and Emerging Web Technologies
Suresh Patidar
 
Knowledge share about scalable application architecture
Knowledge share about scalable application architectureKnowledge share about scalable application architecture
Knowledge share about scalable application architecture
AHM Pervej Kabir
 
Architecture of a Modern Web App
Architecture of a Modern Web AppArchitecture of a Modern Web App
Architecture of a Modern Web App
scothis
 
SFO15-TR6: Server Ecosystem Day (Part 6A)
SFO15-TR6: Server Ecosystem Day (Part 6A) SFO15-TR6: Server Ecosystem Day (Part 6A)
SFO15-TR6: Server Ecosystem Day (Part 6A)
Linaro
 
Playing nice with the MEAN stack
Playing nice with the MEAN stackPlaying nice with the MEAN stack
Playing nice with the MEAN stack
Aspenware
 
Biological warfare
Biological warfareBiological warfare
Biological warfare
Timiresh Das
 
Building Scalable Web Applications Using Microservices Architecture and NodeJ...
Building Scalable Web Applications Using Microservices Architecture and NodeJ...Building Scalable Web Applications Using Microservices Architecture and NodeJ...
Building Scalable Web Applications Using Microservices Architecture and NodeJ...
NodejsFoundation
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
Directi Group
 
Facebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challengeFacebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challenge
Cristina Munoz
 
Facebook Architecture - Breaking it Open
Facebook Architecture - Breaking it OpenFacebook Architecture - Breaking it Open
Facebook Architecture - Breaking it Open
HARMAN Services
 
Quadratic Formula Presentation
Quadratic Formula PresentationQuadratic Formula Presentation
Quadratic Formula Presentation
anjuli1580
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications
David Mitzenmacher
 
Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture Anatomy of a Modern Node.js Application Architecture
Anatomy of a Modern Node.js Application Architecture
AppDynamics
 
Latest Trends in Web Technologies
Latest Trends in Web TechnologiesLatest Trends in Web Technologies
Latest Trends in Web Technologies
bryanbibat
 
Node.js 101 with Rami Sayar
Node.js 101 with Rami SayarNode.js 101 with Rami Sayar
Node.js 101 with Rami Sayar
FITC
 
facebook architecture for 600M users
facebook architecture for 600M usersfacebook architecture for 600M users
facebook architecture for 600M users
Jongyoon Choi
 
29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview Questions29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview Questions
Arc & Codementor
 
Ad

Similar to Building Modern Web Apps with MEAN Stack (20)

Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore Chandra
Kishore Chandra
 
MEAN Stack
MEAN StackMEAN Stack
MEAN Stack
Krishnaprasad k
 
Full stack Java Developer
Full stack Java DeveloperFull stack Java Developer
Full stack Java Developer
MdHasan872214
 
DGI-project-MERN technology blog web.pptx
DGI-project-MERN technology blog web.pptxDGI-project-MERN technology blog web.pptx
DGI-project-MERN technology blog web.pptx
avinashsahoo78
 
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
ShivKaushik8
 
Curriculum vitae of nguyen hai quy
Curriculum vitae of nguyen hai quyCurriculum vitae of nguyen hai quy
Curriculum vitae of nguyen hai quy
Hai Quy Nguyen
 
Rinzu_Dongol-CV
Rinzu_Dongol-CVRinzu_Dongol-CV
Rinzu_Dongol-CV
RINJU DONGOL
 
Meetup. Technologies Intro for Non-Tech People
Meetup. Technologies Intro for Non-Tech PeopleMeetup. Technologies Intro for Non-Tech People
Meetup. Technologies Intro for Non-Tech People
IT Arena
 
Overview of MEAN stack development - Agile Infoways
Overview of MEAN stack development - Agile InfowaysOverview of MEAN stack development - Agile Infoways
Overview of MEAN stack development - Agile Infoways
Agile Infoways LLC
 
MERN PPT
MERN PPTMERN PPT
MERN PPT
NeerajGupta96647
 
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
mearn-stackjdksjdsfjdkofkdokodkojdj.pptxmearn-stackjdksjdsfjdkofkdokodkojdj.pptx
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
aravym456
 
MEAN Stack vs MERN Stack Development
MEAN Stack vs MERN Stack Development MEAN Stack vs MERN Stack Development
MEAN Stack vs MERN Stack Development
Meanstack Developer
 
Amit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JSAmit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JS
Amit Kumar
 
Mean Stack Development Full Course
Mean Stack Development Full CourseMean Stack Development Full Course
Mean Stack Development Full Course
Instaily Academy
 
LOURDES_ARULRAJ
LOURDES_ARULRAJLOURDES_ARULRAJ
LOURDES_ARULRAJ
LOURDES ARULRAJ
 
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
75waytechnologies
 
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar Cheekuru  NET UIChandra Sekhar Cheekuru  NET UI
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar
 
Top 10 frameworks of node js
Top 10 frameworks of node jsTop 10 frameworks of node js
Top 10 frameworks of node js
HabileLabs
 
Full-Stack-Presentation-Slide(Longsaar_Francis).pptx
Full-Stack-Presentation-Slide(Longsaar_Francis).pptxFull-Stack-Presentation-Slide(Longsaar_Francis).pptx
Full-Stack-Presentation-Slide(Longsaar_Francis).pptx
longsaarmuknaan
 
Ramarao_US_NewNumber_Promatrix_Webservice
Ramarao_US_NewNumber_Promatrix_WebserviceRamarao_US_NewNumber_Promatrix_Webservice
Ramarao_US_NewNumber_Promatrix_Webservice
Ramarao Behara
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore Chandra
Kishore Chandra
 
Full stack Java Developer
Full stack Java DeveloperFull stack Java Developer
Full stack Java Developer
MdHasan872214
 
DGI-project-MERN technology blog web.pptx
DGI-project-MERN technology blog web.pptxDGI-project-MERN technology blog web.pptx
DGI-project-MERN technology blog web.pptx
avinashsahoo78
 
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
New MERN technology -.pptx HTML, CSS, Bootstrap, DBMS, PHP, JS, React, Final ...
ShivKaushik8
 
Curriculum vitae of nguyen hai quy
Curriculum vitae of nguyen hai quyCurriculum vitae of nguyen hai quy
Curriculum vitae of nguyen hai quy
Hai Quy Nguyen
 
Meetup. Technologies Intro for Non-Tech People
Meetup. Technologies Intro for Non-Tech PeopleMeetup. Technologies Intro for Non-Tech People
Meetup. Technologies Intro for Non-Tech People
IT Arena
 
Overview of MEAN stack development - Agile Infoways
Overview of MEAN stack development - Agile InfowaysOverview of MEAN stack development - Agile Infoways
Overview of MEAN stack development - Agile Infoways
Agile Infoways LLC
 
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
mearn-stackjdksjdsfjdkofkdokodkojdj.pptxmearn-stackjdksjdsfjdkofkdokodkojdj.pptx
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
aravym456
 
MEAN Stack vs MERN Stack Development
MEAN Stack vs MERN Stack Development MEAN Stack vs MERN Stack Development
MEAN Stack vs MERN Stack Development
Meanstack Developer
 
Amit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JSAmit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JS
Amit Kumar
 
Mean Stack Development Full Course
Mean Stack Development Full CourseMean Stack Development Full Course
Mean Stack Development Full Course
Instaily Academy
 
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
8 Node.js Frameworks Every Developer Should Know [UPDATED].pptx
75waytechnologies
 
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar Cheekuru  NET UIChandra Sekhar Cheekuru  NET UI
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar
 
Top 10 frameworks of node js
Top 10 frameworks of node jsTop 10 frameworks of node js
Top 10 frameworks of node js
HabileLabs
 
Full-Stack-Presentation-Slide(Longsaar_Francis).pptx
Full-Stack-Presentation-Slide(Longsaar_Francis).pptxFull-Stack-Presentation-Slide(Longsaar_Francis).pptx
Full-Stack-Presentation-Slide(Longsaar_Francis).pptx
longsaarmuknaan
 
Ramarao_US_NewNumber_Promatrix_Webservice
Ramarao_US_NewNumber_Promatrix_WebserviceRamarao_US_NewNumber_Promatrix_Webservice
Ramarao_US_NewNumber_Promatrix_Webservice
Ramarao Behara
 
Ad

More from Suresh Patidar (7)

Conducting Effective Interviews
Conducting Effective InterviewsConducting Effective Interviews
Conducting Effective Interviews
Suresh Patidar
 
Conducting Good Interviews
Conducting Good InterviewsConducting Good Interviews
Conducting Good Interviews
Suresh Patidar
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
Suresh Patidar
 
Developing high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web workerDeveloping high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web worker
Suresh Patidar
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Learning AngularJS  - Complete coverage of AngularJS features and conceptsLearning AngularJS  - Complete coverage of AngularJS features and concepts
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Space-Based Architecture
Space-Based ArchitectureSpace-Based Architecture
Space-Based Architecture
Suresh Patidar
 
Modern UI Architecture_ Trends and Technologies in Web Development
Modern UI Architecture_ Trends and Technologies in Web DevelopmentModern UI Architecture_ Trends and Technologies in Web Development
Modern UI Architecture_ Trends and Technologies in Web Development
Suresh Patidar
 
Conducting Effective Interviews
Conducting Effective InterviewsConducting Effective Interviews
Conducting Effective Interviews
Suresh Patidar
 
Conducting Good Interviews
Conducting Good InterviewsConducting Good Interviews
Conducting Good Interviews
Suresh Patidar
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
Suresh Patidar
 
Developing high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web workerDeveloping high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web worker
Suresh Patidar
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Learning AngularJS  - Complete coverage of AngularJS features and conceptsLearning AngularJS  - Complete coverage of AngularJS features and concepts
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Space-Based Architecture
Space-Based ArchitectureSpace-Based Architecture
Space-Based Architecture
Suresh Patidar
 
Modern UI Architecture_ Trends and Technologies in Web Development
Modern UI Architecture_ Trends and Technologies in Web DevelopmentModern UI Architecture_ Trends and Technologies in Web Development
Modern UI Architecture_ Trends and Technologies in Web Development
Suresh Patidar
 

Recently uploaded (20)

Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 

Building Modern Web Apps with MEAN Stack

  • 1. 1 Building Modern Web Apps with MEANStack By Suresh Patidar E
  • 2. 2 Who am I? { "name":"Suresh Patidar", "before":"Worked with ClearTrail Technologies and L&T", "today":"UI Architect @ Calsoft", "Geek":[ "Writes code for Frontend and Backend", "Works on UI/UX aspect", "Create Application Architecture and Design" ], "languages-and-frameworks":[ "JavaScript, NodeJS, AngularJS, Backbone, JQuery…", "HTML, CSS, SASS, LESS, Bootstrap etc.", "Java, .NET (C#), Spring MVC", "Oracle, MySql, MongoDB" ], "specialized-in":[ "Application Architecture & Design", "MEAN Stack/Full Stack Application Development", "Web development/Architecture", "Mobile Development" ] }
  • 3. 3 Agenda  Structure of web application  The requirements for a Modern Web App  What is MEAN stack?  Who uses MEAN stack?  How it is different from LAMP stack?  The MEAN Stack Architecture and Components  So why Go MEAN?  Value of the MEAN stack  MEAN Security  What’s bad about MEAN approach?  Future of MEAN stack  Any Questions?
  • 4. 4 Structure of Web Application
  • 7. 7 Requirements for a modern web app  Customers want fast web sites/fast response time  No page reloads  Enterprises want to go virtual • One box + Several Virtual Images = Shared Hardware • Systems with minimal memory footprint/overhead needed  As many concurrent requests as possible  Only load resources when needed (conditional loading)  Most of the data must come from a slim REST-API  Mobile friendly/Responsive UIs  Automated build for backend AND frontend • Including check for coding conventions, testing,… • Integration in company’s continuous integration platform
  • 8. 8 Front end vs. Back end Introduction to the MEAN Stack
  • 9. 9 What is MEAN stack? “MEAN is a fullstack JavaScript platform for modern web applications” – Mean.io
  • 10. 10 Who uses MEAN stack? and many more…
  • 11. 11 How it is different from LAMP stack?  Building web application with a LAMP approach • Server-side language: PHP, Perl, JSP, ASP… • Server-side container: Tomcat, Jboss, Jetty, Apache,… • Server-side templating: HAML, Moustache,… • Server-side MVC framework: Spring, Struts,… • Client-side JavaScript: jQuery, AngularJS, BackboneJS • > 5 different technologies/languages  Building web applications with a MEAN approach • JavaScript and JSON • That’s it!
  • 13. 13 AngularJS Our app’s entire frontend  Open source, maintained by Google  Client Side MVC (MVVM) framework  Excellent data bindings  Very modular and extensible  Great browser support (> IE8)  Well documented  Easy to test
  • 14. 14 Node.js Lightweight web server framework  Released in 2009 by Ryan Dahi  Written in C/C++  Built on Google Chrome’s V8 JavaScript engine  Extremely lightweight and efficient  What JavaScript has done for the web browser, Node.js is doing for backend server  Does module loading and Asynchronous IO  Single threaded, One node process per CPU  Easily scalable (just create a cluster)  Great community and well maintained
  • 15. 15 Express Create our routes and our API  A simple, minimal, robust and flexible web application framework for Node.js  Gives everything we would expect to build a modern web server  Abstracts away a lot of low level logic (e.g. for HTTP requests, SSL etc.)  Helps organize your Node app into an MVC structure  Easy to implement REST API and session management  Middleware, routing, templating, static-files, cookies, mime-types and much much more
  • 16. 16 MongoDB Our data store  A simple and scalable document based top NoSQL Database  Open Source, maintained by MongoDB  JSON like syntax and model persistence  Key-value stores  Replication and High-Availability  Flexible Schemas, Full Index support, Query Selectors, Sharding and much much more
  • 17. 17 MEAN Stack Language and Format Usage
  • 19. 19 Advantages of MEAN Stack over conventional Technology Stack
  • 20. 20 MEAN Stack (Full Stack) Development Team
  • 21. 21 So why Go MEAN?  It is 100% free, Open Source and Web Standards  JavaScript all the way down  Consistent models across stack (backend to frontend and back)  Consistent best practices across stack  Use a uniform language throughout your stack • JavaScript (the language of the web) • JSON (the data format of the web) • No conversion needed for the database  Very low memory footprint/overhead  Leverage JavaScript’s popularity  Huge community
  • 22. 22 Value of MEAN stack  Universal end-to-end workflow  Focus on speed of development  Flexible pieces
  • 23. 23 MEAN Security  It’s as insecure as you code it   It’s JavaScript so you have to be careful • Always use “strict” mode • Always declare variables • Always throw all errors • Always handle all callbacks (e.g. Success AND Error) • Use patterns for visibility (e.g. Module pattern) • Do static code analysis (JSHint/JSLint) • Always encode untrusted data  Use Angular sanitizer ($sanitize) to sanitize an HTML string by stripping all potentially dangerous tokens  And of course – never run any application as root!   Test, Test and Test
  • 24. 24 What’s bad about this “MEAN” approach  For those who don’t like JavaScript – Its going to be killing you   There is still no general JS coding guidelines  SPA need a new way of thinking • The browser is your platform  MongoDB is not as robust as an SQL Server is • This security is what they sacrifice to gain speed  We need to take care of rollbacks our self (2-Phase-Commit) • ACID -> Possible but part of the driver/client application  It’s hard to find specialists that are no hipsters • Have the big picture/architecture for enterprise in mind  It make sense to also have a look at Grunt, Yeoman and Bower in order to create good developer experience  Once you have created the first application with this technology, it’s hard to go back to the old approach
  • 26. 26 Future of MEAN Stack Checkout http://stackoverflow.com/research/developer-survey-2016 for latest survey results
  • 27. 27