October 23, 2014

Get Started with MEAN stack for Dummies

It's always tricky to get on track with new technologies. Here is how to get your first helloworld MEAN app up and running in a breeze!

sudo apt-get update
sudo apt-get install npm
download node from its website
cd Downloads/node-v0.10.32/
sudo make install
sudo npm install -g mean-cli 
sudo apt-get install git
sudo apt-get install git
mean init yourNewApp

# Download mongodb from its website
mkdir ./data/db
./mongod --dbpath ./data/db   

./mongo # The mongo javascript shell connects to localhost and test database by default:
    > help

 sudo npm install -g bower
 bower install bootstrap

cd yourNewApp/

sudo npm install
node server

go to http://localhost:3000/

No comments:

Post a Comment