MEAN stack: MEAN is an abbreviation that stands for MongoDB, ExpressJS, AngularJS, Node.js. This framework provides quick and easy development of web and mobile applications. The main components of MEAN are as follows-
- MongoDB: It is used to store the data of back-end applications as JSON files.
- ExpressJS: It is a back-end application that runs on top of Node.js.
- AngularJS: It is the front-end framework that runs the code in the browser.
Express.js and Node.js Server Tier: Express.js is the next step of MEAN stack, running on a Node.js server. Express.js is a fast, minimalist web framework for Node.js. Express.js has powerful models for URL routing and handling HTTP requests and responses.
MongoDB Database Tier: If we need to store any data, then we need a database like MongoDB. JSON documents created in Angular.js front end are sent to the Express.js server, where they are processed and stored directly in MongoDB for later retrieval.
MERN stack: MERN is an abbreviation which stands for MongoDB, ExpressJS, ReactJS, Node.js. This framework also provides quick and easy development of web and mobile applications using java as its main component. Main components of MERN are as follows.
- MongoDB: It is a document-oriented No-SQL data store used to store back-end applications.
- ExpressJS: It is a layered framework built on top of NodeJS that takes care of the website’s back-end functionality and structure.
- ReactJS: It is a library that facilitates creating the user interface components of single-page web applications.
Working of MERN stack:
Express.js and Node.js server tier: It plays same roles in MERN stack as in the MEAN stack as mentioned above.
MongoDB Database tier: It plays the same roles in the MERN stack as in the MEAN stack as mentioned above.
Difference between MEAN and MERN stacks: