Created
November 18, 2019 14:30
-
-
Save linuxfemale/5cc6d56804651067138bfe5a669a3af6 to your computer and use it in GitHub Desktop.
MEAN Stack On Ubuntu 18.04 LTS (MongoDB, Express.JS, Angular.JS, Node.JS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEAN Stack On Ubuntu 18.04 LTS (MongoDB, Express.JS, Angular.JS, Node.JS) | |
The MEAN stack (mean.js) is an open-source JavaScript (JS) framework used for developing robust web applications. It is a set of software tools that include everything needed for building dynamic websites and web applications. | |
As it uses a single programming language, JavaScript, in each layer of the stack, it has a big role in simplifying development. | |
MEAN is an acronym of the following programs: | |
MongoDB (document database) | |
Express (back-end application framework) | |
Angular (front-end application framework) | |
Node.js (JavaScript runtime environment) | |
sudo apt update | |
#Install MongoDB | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B | |
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt update | |
sudo apt install mongodb-org | |
sudo apt install mongodb-org=4.2.1 mongodb-org-server=4.2.1 mongodb-org-shell=4.2.1 mongodb-org-mongos=4.2.1 mongodb-org-tools=4.2.1 | |
sudo systemctl enable mongod | |
sudo systemctl start mongod | |
sudo systemctl status mongod | |
mongod --version | |
#Install Node.js and npm | |
sudo apt install curl | |
curl –sL https://deb.nodesource.com/setup_8.x | sudo -E bash – | |
sudo apt install nodejs | |
nodejs –version | |
npm –version | |
#Install Git, Yarn, Gulp, and Bower | |
sudo apt install git | |
sudo npm install -g yarn | |
sudo npm install -g gulp | |
sudo npm install -g bower | |
npm list -g -depth=0 | |
#Install MEAN | |
git clone https://github.com/meanjs/mean.git | |
cd mean | |
sudo npm install | |
npm start | |
#Verify Mean Stack Installation | |
npm start | |
http://localhost:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment