The MEAN stack (MongoDB, Express, Angular and Node.js) lets you build a complete web application in JavaScript or TypeScript, from the database to the browser. This page is a learning path and resource index: what to learn first, which guides on this knowledge base to follow in which order, and where a finished MEAN app can run.
To set up a project, build an API and an Angular front end and deploy them, follow The complete MEAN stack handbook: learn, build, deploy. This page is the map around it.
Learn HTML, CSS and JavaScript well, then TypeScript and Angular, then Node.js with Express 5, then MongoDB with Mongoose. Build one small app end to end before anything bigger. Use current versions: Node.js 24 LTS, MongoDB 8 and a current Angular release. A full MEAN app with its own MongoDB runs on a VPS; shared hosting can't reach MongoDB.
1. The four parts in one table
| Part | What it is | What you use it for |
|---|---|---|
| MongoDB | Document database | Storing data as JSON-like documents |
| Express | Web framework for Node.js | The REST API: routes, validation, sign-in |
| Angular | Front-end framework by Google | The pages and components users see |
| Node.js | JavaScript runtime | Running Express on the server |
Angular builds to static files that any web server can serve. Express is a long-running process. MongoDB is a separate database server. That split decides where you can host the app (section 5).
2. What to learn, in order
- HTML and CSS.Page structure and layout. See the guide to HTML and the guide to CSS.
- JavaScript, properly.Functions, arrays and objects, modules, and especially promises and async/await. Follow JavaScript from fundamentals to expert.
- Git and the command line.Version control from the first line of code, and enough Linux to work on a server. See Git, GitHub and VS Code with a sample app and essential Linux shell commands.
- Node.js and npm.Install a current LTS and learn modules and npm. See installing Node.js and npm and mastering Node.js.
- Express and REST APIs.Routes, middleware, validation and error handling. See a simple REST API with Node.js.
- MongoDB and Mongoose.Documents, schemas, indexes and queries. See MongoDB and Mongoose.
- TypeScript and Angular.Standalone components, signals, the new control flow (
@if,@for), routing and the HTTP client. - Authentication.Password hashing, httpOnly session cookies and route guards. See the MEAN user authentication service.
Some older Angular tutorials on the web still use NgModules, AngularJS (1.x) or Protractor. AngularJS and Protractor are discontinued; learn the current standalone style instead.
3. Use current versions
| Tool | Use in 2026 | Avoid |
|---|---|---|
| Node.js | 24 (active LTS); 22 is in maintenance | 20 and older, which are end of life |
| Express | 5 | Tutorials that wrap every async route by hand |
| MongoDB | 8.x | 4.x and 5.x, which are end of life |
| Angular | The current release, standalone components | AngularJS 1.x, NgModule-only tutorials |
| End-to-end tests | Playwright or Cypress | Protractor |
Install Node.js with nvm so you can switch versions per project; see working with Node.js versions using nvm.
4. Build one app end to end
Before anything large, build one small app that touches every layer: a product list or task list with sign-in. The MEAN stack handbook walks through exactly that. The server side of MEAN is identical to MERN, so the MERN tutorials here also apply to your API; see the MERN resource index.
Unsure whether MongoDB suits your data? Choosing PostgreSQL, MySQL, SQLite or MongoDB compares them. Strongly relational data such as invoices and stock is often better in PostgreSQL.
Add a MongoDB index for every field you filter or sort on, return only the fields the page needs, and let Nginx serve the Angular build rather than Express. Those three habits fix most slow MEAN apps.
5. Where a MEAN app can run
| Option | Fits a full MEAN app? | Why |
|---|---|---|
| Domain India VPS | Yes | Full root access: run Nginx, Express under PM2 and MongoDB on the same self-managed server |
| Domain India App Platform | The API | Node.js is detected automatically; the included database is PostgreSQL, so MongoDB must be an external service; no WebSockets |
| Shared hosting | No | The Angular build and a small Node.js API can run, but MongoDB is not available from shared hosting |
The deployment guide for a VPS is running MERN or MEAN on a clean VPS. For the App Platform, start with App Platform: getting started.
- 1 vCPU
- 2 GB DDR4 RAM
- 64 GB NVMe SSD Storage
- 2 TB Monthly Bandwidth
The price on the card is a live Domain India list price and excludes 18% GST.
Frequently asked questions
What should I learn first for the MEAN stack?
Solid JavaScript first, including promises and async/await, then TypeScript and Angular, then Node.js with Express, then MongoDB with Mongoose. Build one small app across all four before starting anything large.
Is AngularJS the same as Angular?
No. AngularJS is the old 1.x framework and is discontinued. Modern Angular is a different, TypeScript-based framework; learn the current release with standalone components and signals.
What is the difference between MEAN and MERN?
Only the front end. MEAN uses Angular and MERN uses React. MongoDB, Express and Node.js are the same, so the API code is identical.
Can I host a MEAN app on Domain India shared hosting?
Not a complete one. The Angular build and a small Node.js API can run on shared hosting, but MongoDB is not available from it. Use a VPS for a full MEAN app.
Which Node.js version should I use?
The current LTS, Node.js 24. Node.js 22 is still in maintenance, and Node.js 20 reached end of life in April 2026.
Ready to start? Follow the MEAN stack handbook, compare VPS plans for hosting, or open a ticket if you are unsure where your app should run.
A self-managed KVM VPS with full root access, ready for Node.js, MongoDB and Nginx.
See VPS plans