MEAN.IO have following requirements, to be pre-installed on system.
- Git – package manager
Install NPM & Node.js
First use the following commands to install npm and nodejs on your system. In below commands first command will installed some required packages on system. Second command will add ppa for node.js to your system. After that update your all attached ppa and last command will install nodejs and npm on your system.
$ sudo apt-get install python-software-properties python g++ make $ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs
Now execute the following commands to install MongoDB on your system. Visit here for detailed installation instructions about latest mongodb.
$ sudo apt-get install mongodb mongodb-server
Install Required Packages
Now install some more required packages for working with Mean.io.
$ sudo apt-get install git $ sudo npm install gulp
Install Mean.io CLI
Now install mean.io cli tools using npm on your system
$ sudo npm install -g mean-cli
After install mean cli tools, create your first app using following commands.
$ mean init myApp $ cd myApp && npm install
Start Node Server
Now use the following command to start node developement server. This option is not recommended for production use.
$ node server
Then, open a browser and go to: