Angular Tour Of Heroes with Webpack

Build Status

This repository holds the source code of the angular.io basic tutorial, complemented with the angular.io testing tutorial and the angular.io webpack tutorial.

It can be used as an example to understand how all the angular.io mechanisms work with each others.

Prerequisites

Node.js and npm are essential to Angular development.

Get it now if it's not already installed on your machine.

Verify that you are running at least node v4.x.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors.

Clone this repository

git clone https://github.com/osechet/angular-tour-of-heroes-webpack
cd angular-tour-of-heroes-webpack

Install npm packages

See npm version notes above

Install the npm packages described in the package.json and verify that it works:

npm install
npm start

The npm start command first compiles the application, then uses webpack to bundle it and run a development web server. Webpack watches for file changes.

Shut it down manually with Ctrl-C.

Testing

This repository follows the angular.io testing tutorial to implements the unit tests.

To run tests:

npm test