Introduction to MEAN Stack Last Updated : 21 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report MEAN Stack is one of the most popular Technology Stack. It is used to develop a Full Stack Web Application. Although it is a Stack of different technologies, all of these are based on JavaScript language. MEAN Stands for: M - MongoDBE - ExpressA - AngularN - Node.js This stack leads to faster development as well as the deployment of the Web Application. Angular is Frontend Development Framework whereas Node.js, Express, and MongoDB are used for Backend development as shown in the below figure. Flow of Data in MEAN Stack Application: Here, each module communicates with the others in order to have a flow of the data from Server/Backend to Client/Frontend. Getting Started with each Technology with examples: The description of each Technology in this Stack as well as the links to learn them are given below: 1. Node.js: Node.js is used to write the Server Side Code in Javascript. One of the most important points is that it runs the JavaScript code outside the Browser. It is cross-platform and Open Source. Pre-requisites to learn Node.js- JavaScript/TypeScriptGo to Node.js Downloads and click Download button to get the latest version and Install as per your Operating System.Verify whether it is installed correctly by checking the version: node -v If no version is obtained then it is not installed correctly.Check the version of npm (It is installed by default with node): npm -vCreate an index.js file inside your project folder and copy the following code to it: javascript var http = require("http"); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); // Send the response text as "Hello World" response.end('Hello World\n'); }).listen(3100); console.log('Server running at http://127.0.0.1:3100/'); Now open terminal and execute the following command: node index.jsYou will see on Terminal console a log which says: Server running at http://127.0.0.1:3100/Go to the browser and type the URL: http://127.0.0.1:3100/ you will see an output as below: Links to learn more about Node.js: 1. Node.js Tutorials 2. Get Knowledge of Latest Release of Node.js2. AngularJS: Angular is a Front-end Open Source Framework developed by Google Team. This framework is revised in such a way that backward compatibility is maintained (If there is any breaking change then Angular informs it very early). Angular projects are simple to create using Angular CLI (Command Line Interface) tool developed by the Angular team. Pre-requisites to learn Angular: TypeScriptCSS PreprocessorTemplate Code (Angular Material, HTML 5, etc)Installing Angular CLI - Command Line Interface using npm (Node Package Manager) npm install -g @angular/cliNow check whether it was installed correctly using below command: ng --version It should show something like: Now, create a new project using below command: ng new project_nameGo to project Directory using below command: cd project_nameStart the Angular Application using below command: ng serveApplication will start on http://localhost:4200, you will see the following: Now make changes in app.component.html file and save the file, the application will reload automatically and corresponding changes will be reflected.Links of related Angular articles: 1. AngularJS2. Angular 7 Introduction3. Angular 7 Installation 4. Angular 7 Data Services and Observables5. Angular 7 Simple To do App6. Get Knowledge of Latest Release of Angular 3. MongoDB: MongoDB is a NoSQL Database. It has JSON like documents. It is document oriented database. Pre-requisites to learn MongoDB: What is DatabaseDisadvantages of SQL DatabaseCreating a database: use database_name;Create a collection: db.createCollection("first_collection");Insert a record in the Collection: db.first_collection.insertOne( {name:"Geeks For Geeks"});Print all the records in a collection: db.first_collection.find()Links regarding MongoDB: 1. MongoDB Introduction 2. MongoDB Getting Started 3. How MongoDB works ? 4. Get Knowledge of Latest Release of MongoDB 4. ExpressJS: Express is a web Framework build on Node.js and used to make API and to build Web Applications. Pre-requisites to learn Express: JavaScript/ TypeScriptNode.js Initialize a Project by typing the following command on terminal: npm init It will ask some questions, Press enter in order to set all the default options. This will create package.json file as shown below: javascript { "name": "gfg-express", "version": "1.0.0", "description": "Basic Express Node.js Application", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", } Install the express using below command: npm install express --saveNow, the package.json file will be changed to add the dependencies as shown below: javascript { "name": "gfg-express", "version": "1.0.0", "description": "Basic Express Node.js Application", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.17.1" } } Create index.js file and add the below code to it: javascript const express = require('express') const app = express() const PORT = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(PORT, () => console.log( `Example app listening at http://localhost:${PORT}`)) Start the express server using below command: node index.jsGo to http://localhost:3000 to see the output as below: Links to learn ExpressJS: 1. Introduction to Express2. Design first Application using Express Comment More infoAdvertise with us Next Article MEAN Full Form S shantanujoshi Follow Improve Article Tags : JavaScript MEAN Stack Similar Reads MEAN Stack In the world of full-stack development, the MEAN stack has became one of the top choice for building dynamic and robust web applications. Web development refers to the creating, building, and maintaining of websites. It includes aspects such as web design, web publishing, web programming, and databa 9 min read Introduction to MEAN Stack MEAN Stack is one of the most popular Technology Stack. It is used to develop a Full Stack Web Application. Although it is a Stack of different technologies, all of these are based on JavaScript language. MEAN Stands for: M - MongoDBE - ExpressA - AngularN - Node.js This stack leads to faster develo 5 min read MEAN Full Form MEAN Stack is a JavaScript Stack that is used for easier and faster deployment of full-stack web applications. It comprises of 4 technologies namely: MongoDB, Express, Angular, and Node JS. It is designed to make the development process smoother and easier. Table of Content MEAN Full FormWhat is MEA 5 min read MEAN Stack Difference BetweenDifference between MEAN Stack and MERN StackWeb development is a procedure or process for developing a website. A website basically contains three ends: the client side, the server side, and the database. These three are different sides of an application that combine together to deliver an application; all ends are implemented separately with 3 min read Difference between MEAN Stack and Full Stack DeveloperMEAN Stack Developer : An IT professional who works on a collection of JavaScript technologies to develop web applications is called a MEAN stack developer. MEAN refers to M for MongoDB (NoSQL database)E for Express (a backend web application framework for Node.js)A for Angular (JavaScript based ope 3 min read Difference between MEAN Stack and MEEN StackWhat are stacks? What is a stack, if you are familiar with full-stack development you might have come across the terms MEAN, MERN, MEVN, MEEN, etc. These are web stacks consisting of a collection of software and frameworks used for building a web application from the front-end and back-end. You can 4 min read Difference between MEAN Stack and LAMP Stack DeveloperMEAN Stack and LAMP Stack are two popular technology stacks used for web application development, each offering distinct advantages and components. MEAN Stack consists of MongoDB, Express.js, Angular (or AngularJS ), and Node.js while LAMP Stack comprises Linux, Apache, MySQL and PHP/Perl/Python , k 6 min read Difference between PERN and MERN stackWhat is a stack, if you are familiar with full-stack development you might have come across the terms MEAN, MERN, MEVN, etc. These are web stacks consisting of a collection of software and frameworks used for building a web application from the front-end and back-end. You can learn any of these stac 3 min read MEAN ProjectsBlackjack Game using MEAN StackThis is a project to get a thorough understanding of MEAN Stack technologies (MongoDB, Express, Node JS, Angular). This will give you a step-by-step process to create a blackjack game from scratch. This article will discuss Starting a new game, the logic to play it and store it in the database. It w 15+ min read Todo List Application using MEAN StackThe todo list is very important tool to manage our tasks in this hectic schedule. This article explores how to build to-do list application using the MEAN stackâMongoDB, Express.js, Angular, and Node.js. Weâll walk you through the process of setting up backends with Node.js and Express.js, integrati 10 min read Health Tracker using MEAN StackIn the fast-paced world, maintaining a healthy lifestyle is more important than ever. Technology can play a significant role in helping individuals monitor and improve their health. In this article, we'll explore how to use the power of the MEAN (MongoDB, Express.js, Angular, Node.js) stack to build 15+ min read Event Management Web App using MEANIn this guide, we'll walk through the step-by-step process of building a feature-rich Event Management Web App. We will make use of the MEAN stack, i.e. MongoDB, ExpressJS, Angular and NodeJS, to build this project. Project Preview: Final Output of Event Management AppPrerequisites:AngularMongoDBExp 8 min read Summarizer Website using MEAN StackThis article aims to develop a project using MEAN stack which will work as a summarizer website. MEAN stack technologies include MongoDB, AngularJS, NodeJS, and Express. It will give you a thorough understanding of how to create a MEAN stack application end to end from backend to frontend including 15+ min read Community Forum Page using MEAN StackCreating a community forum page using the MEAN (MongoDB, Express.js, Angular, Node.js) stack will clear the concepts of MEAN stack. It will help strengthen the understanding of CRUD operations. This article will discuss about the features of creating, updating, deleting a post, like / unlike feature 15+ min read Address Book using MEANIt is important to have an efficient way to manage contacts for personal and professional life. Building an address book application can be a rewarding project, allowing you to learn the ins and outs of full-stack web development while creating a useful tool. In this article, we'll explore how to bu 15+ min read Product Review Platform using MEAN StackIn today's digital age, online reviews play an important role in shaping consumer decisions. Whether it's choosing a restaurant, purchasing a gadget, or booking a hotel, people often rely on the experiences and opinions shared by others. In this article, we'll explore how to create a dynamic and use 15+ min read Multi Factor authentication using MEANMulti-factor authentication is important and common in every website or app to securely login the user. In this article, we will see how we can implement Multi-factor authentication using MEAN Stack. MEAN Stack includes the use of Angular for frontend, Node JS and Express for backend, and MongoDB as 13 min read Like