This project will validate the input sides provided for a triangle.

## Running the application

Clone the Git repo using the following command:
```
git clone https://github.com/grbbabu/angular-triangle-validator.git
```
To run the application go to `dist` folder in angular-triangle-validator folder and open the index.html file in your browser.


## Developing the application

### Prerequisites

This application assumes that the following are installed locally in your computer.

 1. [Git](https://git-scm.com/downloads%20title=%22Git%22)
 2. [Node.js](https://nodejs.org/en/download/%20title=%22Node.js%22)
 3. Bower (npm install -g bower)
 4. Grunt (npm install -g grunt-cli)
 5. Install [Ruby](https://www.ruby-lang.org/en/downloads/%20title=%22Ruby%22), add it to your path.
 6. Install Sass gem (gem install sass)
 7. Install Compass gem (gem install compass)

### Running the application

Clone the Git repo using the following command:

```
git clone https://github.com/grbbabu/angular-triangle-validator.git
```

Go to angular-triangle-validator folder and install the development dependencies as follows:

```
npm install
```

Install the client side dependencies using the following command:

```
bower install
```

Create the distribution files using the following command:

```
grunt
```

To run the application go to `dist` folder and open the index.html file in your browser.

### Build & development

Run `grunt` for building and `grunt serve` for preview.

### Testing

Running `grunt test` will run the unit tests with karma.

### Debugging Unit Tests

Running `grunt karma:debug` will run the unit tests with karma in Chrome browser for debugging.

