Learn MEAN Tutorial – Step By Step Guide
What is MEAN ?
MEAN comprises a set of 4 technology.
- M => mongoDB
- E => express
- A => angular
- N => node
Fist we know about the Angular.
What is Angular?
- Angular is a client-side(Browser) Framework which allows us to build Single-Page-Applications(SPA).
- Angular job is to not only render static data like html and cs.s but also render dynamic data to the browser.
- Angular is responsible for validating user input and sending it to the server.
- Angular communicate with our backend with Node, Express, Mongo combination.
- Angular provides a “Mobile-App” like user interface that means it never need to reload the page just change the parts of the page with JavaScript to Angular and therefore everything happens instantly in very reactive way.
What is NodeJS?
NodeJS is a open-source and cross-platform JavaScript runtime environment. It takes the request from the front-end application like angular. Angular could send a request to fetch the list of all the post and node reach out to the database then send back the response with all these post.
- NodeJS is primarily used for server side scripting to build scalable network connections.
- NodeJS often used to create RESTful API’s and microservices.
- NodeJS executes Server-Side logic in general
What is Express?
- Express is a Node Framework which simplifies writing Server-Side code and logic.
- Express framework creates fast, secure and scalable NodeJS application.
- It provide some extra feature to node to create our application faster. We can use middleware to handle request.
- Express connect to the database like MySQL, MongoDB and other quickly.
What is MongoDB?
- MongoDB is a NoSQL Database which stores “Documents” in “Collection” instead of “Records” in “Tables” as in SQL.
- It enforce no data schema or relations. All data store in the form of documents or collection.
- It easily connected to node/express(not to angular).
- It’s a powerful database which can easily be integrated into a Node/Express environment.