MEAN Stack

Last Updated Jul 05, 2021

What is a MEAN stack?

MEAN stands for MongoDB, Express.js, AngularJS, and Node.js. This is a relatively new "stack" of software for delivering scalable cloud-hosted applications. The MEAN Stack is considered a more "modern" version of the LAMP Stack.

What is in a MEAN Stack?

A stack is a collection of software technology that is packed together to form a platform. A stack is like a collection of tools that can be used to solve a problem. In this case, a MEAN stack solves a recurring problem in programming: how do I securely host web applications in the cloud?  

MongoDB  

MongoDB is an open source, nonrelational database management system (DBMS) that uses flexible documents instead of tables and rows to process and store various forms of data]. Mongo is a distributed database at its core, so it scales well in a cloud environment, and stores data in JSON-like formatted documents.  

ExpressJS

ExpressJS forms the MEAN stack's backend, handling all the interactions between the frontend (Angular) and the database (MongoDB).  

AngularJS

AngularJS is Google’s JavaScript frontend framework, which plays nicely with Express, Node, and MongoDB.  

Node.js

Node.js is the backbone of the MEAN stack. Express and Angular are purpose-built to work on top of Node.js, making it easy to deploy your MongoDB database and application to the cloud.

How does the MEAN Stack work?  

Angular acts as the MEAN stack's web frontend, receiving requests from a user's browser. Angular passes this request to Express, which passes it to Node. Node retrieves the object from the MongoDB database, without having to translate the object at any point, because it's in a JSON format running through all JavaScript components.  

Conclusion

MEAN is a newer solution to newer problems. MEAN exists to provide web services via the cloud, and take advantage of the cloud's hugely scalable technologies. It is also open source.