MERN
MERN
Mern Stack
(Most Famous Tech Stack)
‘MERN’ is a word that gets thrown around a lot in web
development circles. But what exactly does it stand for?
They are:
MongoDB:
Express.js:
React:
Node.js:
01
Web
React.JS
Express.JS
Server
Node.JS
Database
Mongo.DB
02
MongoDB:
It is the database used for the full stack web application. It
is used to store and update any data that is used by the
application
03
ExpressJS Framework:
ExpressJS is simply a framework built on top of Node.js.
We use it to simplify the process of writing backend logic
and developing many Node modules
04
React JS:
React.js is a front-end JavaScript library developed by
Facebook, primarily used for building user interfaces
05
Node JS:
Node.js is the back-end layer that allows for the execution
of JavaScript outside the browser, providing an
environment for users to run their code on the server
06
Layers of MERN Stack
Client Layer Business Logic Layer
Http Request
Browser
Express
HTML/CSS Application
Java Script (React App)
Http Response
Node Server
Desktop Mobile
Application Server
Data Request
Data Response
Business Logic
Database Layer
Layer
MongoDB
Database
Database Server
07
Most MERN Stack applications follow a 3 layer
architecture pattern
Client Layer
The client layer consists of the web pages which are visible
to the client or end user
It is developed using React framework along with
Javascript, HTML & CSS.
Application layer
Acts as the communication layer between client &
database layer
It contains business logic in the form of an Express
application built on the Node.js platfor
Services client requests by fetching appropriate data from
the database layer.
Database Layer
The MongoDB database operates within this laye
All the application data required by the client is fetched
from this database layer.
08
Basic Working of any MERN Application
involves the following steps:
1. User Interaction:
User interacts with frontend of the application. React
components are used to create a dynamic and responsive user
interface.
2. Client-Server Communication:
When a user performs an action (e.g., submits a form or clicks
a button), the frontend sends an HTTP request to the backend
via API endpoints created using Express.js.
3. Backend Processing:
The Express.js application, running on the Node.js platform,
receives the request and processes it. This may involve
applying business logic, input validation, and/or
authentication and authorization checks.
09
4. Database Interaction:
If the request requires data storage or retrieval, the backend
communicates with the MongoDB database. MongoDB stores
data in a flexible, JSON-like format called BSON, making it
suitable for handling various data types and structures.
5. Response Formation:
Once the backend processing is complete and any required
data has been fetched or stored, the server forms an
appropriate response, usually in JSON format, and sends it
back to the client.
6. Frontend Update:
The React frontend receives the response and updates the
user interface accordingly, providing feedback to the user or
displaying the requested data.
This process continues as users interact with the MERN
application, with the different layers working together to
provide a seamless and efficient user experience.
10
Advantages of using MERN stack when
developing applications
2. Reusable Components:
3. High Performance:
11
4. Scalability:
The MERN stack is designed to build scalable applications.
Node.js is lightweight and efficient, while MongoDB is a highly
scalable, document-based database that can handle large
volumes of data.
7. Open Source:
All technologies in the MERN stack are open-source. This
helps reduce development costs and ensures that developers
have access to a wealth of resources and support.
12
ABOUT BOSSCODER
Bosscoder is an online upskilling platform for techies. We help learners
upskill in tech roles to get them placed at top tech companies.
Live Classes:
Personal mentors from top tech companies help you provide the right
guidance, feedback, and support.
Industry-relevant projects:
Placement Support:
14
Vishal Srivastava Ujesh Nada
Before After
Before After
Cognizant
Barclays
Programmer Analyst
Byju’s
Google
Software Developer
Trainee BDA SDE
After Before
After
Before
Hashedin
G Pulla Reddy
Synopsys
Wipro
Senior Python
Engineering College
R&D Engineer
Software Engineer Developer Sudent
15
Sarveshwar Neogi Aarushi Jain
16
Want to Upskill?
VISIT WEBSITE
www.bosscoderacademy.com