Server setup

I am using ubuntu 12.04 so these command works for me to run server:

Install Node Version Manager to manage different versions of node:

curl https://raw.github.com/creationix/nvm/v0.4.0/install.sh | sh

Install the latest v0.10.x release of node:

nvm install 0.10

And then in any new shell just use the installed version:

nvm use 0.10

Now go to your project directory and run these following commands. And one more thing that now onward whenever you will need to run server use these commands only, no need to run all above commands.

nvm use 0.10
npm install
npm start

Thats it. Now open browser and hit http://localhost:8000/app/index.html

Ref:
https://github.com/creationix/nvm
http://docs.angularjs.org/tutorial

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s