Introduction
MEAN.js is full javascript stack that contains MongoDB, Express JS, Angular JS, and Node JS. This javascript framework accelerates the web application development using Javascript as backend.
Using the MEAN stack you can rapidly build easily maintainable web applications based on Javascript.avascript.
MongoDB- is schemaless NoSQL database system, MongoDB saves data in binary JSON format which makes it easier to pass data between client and server.
Express JS - is a lightweight framework used to build web applications in Node. It provides a number of features for building single and multi-page web applications.
Angular JS - is a Javascript framework developed by Google. it provides some awesome features like two-way data binding. It is a complete solution for rapid and awesome front-end development.
Node JS - is server-side Javascript execution environment. It's a platform built on Google Chromes V8 Javascript runtime. It helps in building highly scalable and concurrent application rapidly.
MEAN Installation-
To Install MEAN stack, first, we need to install dependencies - To install prerequisites run below command.
Step 1- Dependencies Installation:
$ sudo apt-get install build-essential git fontconfig libpng-dev ruby ruby-dev
$ sudo apt-get install sassStep 2- Install Mongo DB:
In order to install Mongo DB as the database server. First, add MongoDB official repository:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
$ sudo echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
$ sudo apt-get updateAfter package database update, we can proceed MonogDB installation.
To install MongoDB run following command.
$ sudo apt-get install mongodb-orgTo install a specific release of MongoDB use following command. For example, I would like to install MongoDB version 3.6.3
$ sudo apt-get install -y mongodb-org=3.6.3 mongodb-org-server=3.6.3 mongodb-org-shell=3.6.3 mongodb-org-mongos=3.6.3 mongodb-org-tools=3.6.3After MongoDB installation, Start MongoDB service using below command.
$ sudo systemctl start mongod.serviceLet's check MongoDB service status-
$ sudo systemctl status mongod.service$ sudo systemctl enable mongod.serviceIn order to install Node.JS and NPM we have to add the “NodeSource” repository, the following bash script will do this easily:
$ sudo curl -sL https://deb.nodesource.com/setup_8.x | -E bash -
Now, Install Node.JS and NPM
$ sudo apt-get install nodejs$ sudo node -vFor NPM version
$ sudo npm -v yarn is package management tool for client-side programming and it depends on NodeJS and NPM
You can install Yarn with NPM command.
$ sudo npm install -g yarnGulp is a JavaScript task runner that can automate many tasks, you can install it with NPM command as well:
$ sudo npm install -g glupFor verifying that Bower and Gulp are installed successfully you can execute the following command:
$ sudo npm list -g --depth=0You should see something like below:
/usr/lib
├── yarn@1.3.2
├── gulp@3.9.1
└── npm@5.3.0Step 5 - Download and Install MEAN from Git.
Now we can download the latest version of MEAN which is “0.6.0” at the time of writing.
Execute the following command:
$ cd /opt$ sudo git clone https://github.com/meanjs/mean.git
$ sudo cd meanNow, Install mean with the following command.
$ sudo npm installAfter the installation process is finished without errors you can execute the command below to install the front-end stuff:
$ sudo yarn install --allow-rootNow, you can easily start MEAN stack Project with the following command.
$ sudo npm startTo run npm start command in the background run the following command. This command will help us to keep running npm server in the background.
$ sudo nohup npm start &It should run without any errors and you can look up your MEAN stack default page through the following address:
http://IP_addresss:3000You should see a page like below:














IT's very informative blog and useful article thank you for sharing with us , keep posting such quality content.
ReplyDeleteMEAN Stack Training
MEAN Stack Online Training
Thanks for sharing this blog.This article gives lot of information.
ReplyDeleteFull Stack online Training
Full Stack Training
Full Stack Developer Online Training
Full Stack Training in Hyderabad
Full Stack Training in Ameerpet
Full Stack Training Institute
Thanks for sharing the valuable information. nice blog
ReplyDeleteMeanstack Online Training
Meanstack Online Training in Hyderabad
Meanstack Online Training in Ameerpet
Best Meanstack Online Training
Thank you
Nice view to having such a good Article
ReplyDeleteMean Stack Online Training
Hey this is really very useful information you are sharing here.
ReplyDeleteHire Full Stack Developers texas
Full Stack Development Services
Hire Full Stack Developer
Thanks for sharing the valuable information.
ReplyDeleteMeanstack Online Training
Meanstack Training in Hyderabad
Meanstack Training in Ameerpet
Great blog !! thanks for sharing the Valuable information
ReplyDeleteMean stack online training
Mean stack training in hyderabad
ReplyDeleteThanks For Sharing With Us.It gave me a lot of Helpful information.
Mean stack online training
Mean stack training in hyderabad
Nice and awesome article. Thanks
ReplyDeleteNode JS Online training
Node JS training in Hyderabad
Thanks for sharing your valuable information and time.
ReplyDeleteMEAN Stack Training in Delhi
MEAN Stack Course in Delhi
Good information and the content is very useful .Thanks for sharing with us.
ReplyDeleteMean stack online training
Mean stack training in hyderabad