###Getting Started

###Quick Setup

Get NodeJS and npm (one package, two apps) [here](http://nodejs.org/download/).

In order to quickly install all necessary modules, you can use [Rake](http://rake.rubyforge.org/). Depending on your setup, we recommend using [rvm](http://rvm.io) to install Ruby.

After installing the above, run from the root of the repo:

```
$ rake build:all
```

Lots of pretty things will happen on your screen. After that, you are ready to go.

To get all available tasks:

```
$ rake -T
```

As of this writing, you will get something like this:

```
rake build:all                  # Run a full build
rake build:clear_cache          # Clear node cache
rake build:mocha_test           # Run mocha tests
rake build:npm_install_global   # Install all local global modules
rake build:npm_install_local    # Install all local npm modules
rake jenkins:all                # Run a full build for jenkins
rake jenkins:npm_remove_global  # Remove all globally installed npm modules
```

###Step-by-Step Install

####0. Get Node and npm

Node and npm (one package, two apps) can be found [here](http://nodejs.org/download/).

* Note: if you already have node installed, it's probably best clear your cache:

```bash
$ npm cache clean
```
####1. Install packages

You'll need to install three packages globally: Gulp, JSHint, and Jasmine-Node. (Note the `-g` global option.) From anywhere, run:

```bash
$ npm install jshint@2.4.2 -g
$ npm install gulp@3.5.6 -g
$ npm install mocha@1.17.1 -g
```

To make sure everything worked:

```bash
$ which jshint gulp mocha
```

You should get something like this (paths may differ, but that's okay):

```bash
/usr/local/bin/jshint
/usr/local/bin/gulp
/usr/local/bin/mocha
```

####2. Get local packages

Navigate to the `/` directory and run

```bash
$ npm install
```

Lots of pretty things will happen on your screen. After that, you are ready to go.

Now onto [running gulp](running-gulp.md).
