Skip to content

Instantly share code, notes, and snippets.

@CloudLinuxDeveloper
Created June 14, 2020 06:29
Show Gist options
  • Save CloudLinuxDeveloper/9aebb42af7247670b3805f51241e8930 to your computer and use it in GitHub Desktop.
Save CloudLinuxDeveloper/9aebb42af7247670b3805f51241e8930 to your computer and use it in GitHub Desktop.
How to install MEANStack on Ubuntu
#!/bin/sh
#Install Git
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git
# Install Nodejs
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install nodejs
sudo apt-get install -y build-essential
# Install npm
sudo npm install
#Install Yarn and Gulp
sudo npm install -g yarn
sudo npm install -g gulp
sudo npm list -g --depth=0
# Install Mongodb
sudo wget https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/testing/multiverse/binary-amd64/mongodb-org-server_4.2.0~rc1_amd64.deb
sudo dpkg -i mongodb-org-server_4.2.0~rc1_amd64.deb
sudo apt install -f
sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl status mongod
# Install mean
git clone https://github.com/linnovate/mean.git
cd mean
npm install
yarn install --allow-root
npm start
# Visit : localhost:4040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment