Skip to content

Setup Working Environment

Janet Maldonado edited this page Oct 28, 2015 · 11 revisions

For setting up your working environment the following tools, libs and frameworks are required:

  • Node.js v0.10.x
  • Npm (which comes bundled with Node) v2.1.0+
  • Git
  • Yeoman
  • Angular generator
  • Git-up

Install node

If you need to upgrade or install Node, the easiest way is to use an installer for your platform. Download the appropriate installer for your current operative system from NodeJS website.

If using linux run:

sudo apt-get install nodejs
sudo apt-get install npm

Install/update npm

npm install --global npm@latest

Install git

$ apt-get install git

Install the Yeoman toolset

npm install --global yo bower grunt-cli

Install an AngularJS generator

Install generator-angular using this command:

npm install --global generator-angular

Install Git up

https://github.com/aanand/git-up

You need to install ruby and ruby gems

sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo apt-get install rubygems-integration
sudo gem install git-up 

Create a project folder

Create a myApp folder for all your codelab work: mkdir myApp && cd myApp

Git clone repository

git clone 

Install dependencies

npm install
bower install

Start the server

Run a Grunt task to create a local, Node-based http server on localhost:9000 (or 127.0.0.1:9000 for some configurations) by typing:

grunt serve

Stop the server

If you ever need to stop the server, use the Ctrl+C keyboard command to quit your current CLI process.

Run unit tests

Let’s go back to the command line and kill our Grunt server using Ctrl+C. There is already a Grunt task scaffolded out in our Gruntfile.js for running tests. It can be run as follows:

grunt test

Clone this wiki locally