Mean stack
- Mongo DB: The database
- Express: The web framework
- AngularJS: The front-end framework
- Node.JS: The web server
Now here comes the point of why we are learning Mean JS.
One great thing about MEAN stack is, it not only uses JavaScript in the browser, it uses JavaScript throughout. Using the MEAN stack, you can code both the front end and back end in the same language.
Why we use it-
- It provides good facilities for the backend developer and the frontend developer. It provides a good user experience for frontend developers and it provides good mechanics for the backend behind the scenes.
- Mean JS supported 2000slibraries & also frameworks that have become popular in backend and frontend development.
- It reduces the server load, thus it reduces the cost.
Introduction to Node.JS (In MEAN‘N’ is the Node.JS)
- var http = require('http');
- http.createServer(function (req, res)
- {
- res.writeHead(200,
- {
- 'Content-Type': 'text/plain'
- });
- res.end('Hello World\n');
- }).listen(8080, 'localhost');
- console.log('Server running at http://localhost:8080');

Why we use Node JS in Mean Stack?
- It has one main reason that node JS is gaining more popularity so that you write your code in it. If you want to be a full-stack developer you have proficient in at least languages -- JavaScript on the front end and for the backend PHP or Ruby.
- It enables node.JS application to the server which allows more users on fewer server resources than other mainstream technologies.
Introduction to Express (In MEAN‘E’is theExpress.JS)
- var express = require('express');
- var app = express();
- app.get('/', function (req, res)
- {
- res.send('Hello World');
- });
- app.listen(3300);

Why we use Express JS in Mean Stack?
- Express JS provides a simple interface for directing an incoming URL to certain pieces of code. Whether it serves a static HTML page, reads from the database, or writes to the database doesn’t matter.
- HTTP is a stateless protocol so there is no concept for storing session states there. This makes it difficult to create a secure area where a user has to log in.
Introduction to Mongo DB: (In MEAN‘M’ is the mongo DB)
- var connectionUrl = 'mongodb://localhost:1209/myproject',
- sampleCollection = 'order';

Why we use Mongo DB in Mean Stack?
- In relational databases, we use column row concepts for data display but mongo db. is a document database Mongo DB. Concept row will exist but columns are removed and column defines what should be in your row, every row is documented and this document both defines and holds the data itself.
- It stores documents as BSON (it is binary JSON (JavaScriptserialized object notation)). As we say that it holds the data by JSON.
Introduction to AngularJS: (In MEAN ‘A’ is the angular js)
- <html ng-app>
- <head>
- <title>AngularJS</title>
- <script src="https://ajax.googleapis.com/ajax/libs/angularJS/1.3.14/angular.min.JS">
- </script>
- </head>
- <body> Hello world.
- <p>The sum of 10 and 1 is equal to <b>{{10+1}}</b></p>
- </body>
- </html>

Why we use AngularJS in Mean Stack?
- It follows two-way data binding. Two-way data binding helps us with any changes in the model that will be updated view and vice-versa without any manipulation on DOM or events.
- AngularJS support creates your own directive that makes reusable components to be used according to your requirement. It is also abstract DOM manipulation logic.
How the MEAN stack components work together?

MEAN stack architecture
Summary
Read more articles on JavaScript:

Kumaresh RajalingamPosted Feb 14, 2016, 5:09 AM
Nice
Debasis SahaPosted Feb 11, 2016, 8:30 AM
Nice one..
Rupesh KahanePosted Feb 11, 2016, 8:06 AM
Good one
Manoj KulkarniPosted Feb 11, 2016, 5:42 AM
Nice article. Thank you for sharing
Sibeesh VenuPosted Feb 11, 2016, 1:51 AM
Nice Share
Shiva ShuklaPosted Feb 11, 2016, 12:13 AM
thank you Santhakumar Munuswamy Pankaj Kumar Choudhary & Shubham Kumar
Shubham KumarPosted Feb 11, 2016, 12:04 AM
nice
Pankaj Kumar ChoudharyPosted Feb 10, 2016, 8:47 PM
Nice Information Shiva..........
Santhakumar MunuswamyPosted Feb 10, 2016, 2:22 PM
Thanks for nice work