Summary
This article describes the process to setup a mean stack virtual machine using the libvirt manager on Ubuntu 18.04
What is the MEAN Stack?
The MEAN stack is a Javascript-based web development stack. The name MEAN is an abbreviation of MongoDB, ExpressJS, AngularJS, and NodeJS.
Step 1 : Setup the VM Instance
Setup the Ubuntu virtual machine using the Minimal CD. Start and update the instance to latest version
# update to latest version of repository
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Step 2 : Install MongoDB
#install mongodb from Ubuntu repository
sudo apt-get install mongodb
Step 3 : Install NodeJS, Git, and NPM
# install nodejs git and npm from the repository
sudo apt install nodejs git npm
Step 4 : Clone the mean.io repository having the other dependencies
# clone the repository in the build path of the project
git clone https://github.com/linnovate/mean.git
# enter the clone
cd mean
# install and setup dependencies
npm install
# spin up the server
npm start