Skip to content

Commit

Permalink
improved README file
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikcreator committed Apr 3, 2017
1 parent dfac2fa commit 1862283
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@

This is an example on how to update and Angular project (generated with angular-cli) in order to use Web Workers.

The example is a CPU intensive factorial calculator client that compute 50 factorial numbers starting by the number introduced in the form.

**Do you wanna see it in action? Check [the demo](https://kaikcreator.github.io/angular-cli-web-worker/)**

In this repo you will 2 dev branches:

* master: the web workers version
* single-threaded: the single threaded version

## Install
When you enter for first time the master (web workers) on single-threaded branch, you'll need to install the dependencies.
Each branch require their own dependencies.

You can install them using: `npm install`

## Update code from single-threaded to web workers scenario
If you want to try by yourself:

Run `npm install` to do so.
1. move to single-threaded branch
2. Run `ng eject` to generate the webpack 2 file
3. Run a *diff* with master branch in order to understand the changes.

## Development server (single threaded)

Expand Down

0 comments on commit 1862283

Please sign in to comment.