Skip to content
Browse files

Added more detailed instructions on how to get started

  • Loading branch information...
1 parent e3d3397 commit 0a8ae98018bdd467d319d761cede613f85f47322 @gordonbrander committed
Showing with 22 additions and 2 deletions.
  1. +22 −2 architecture-examples/reducers/readme.md
View
24 architecture-examples/reducers/readme.md
@@ -1,18 +1,37 @@
# [TodoMVC](http://todomvc.com) using reducers
+Reducers is a reactive programming approach to creating applications.
+
+Reducers allow you to process streams of data in real time by using and transforming processing functions. You don't have to create a bunch of interim array containers for that data, because your functions react to it *as it streams in*.
+
+There are a bunch of happy side-effects to this approach as well:
+
+* You don't need to do data-binding. Since you're mapping and filtering from the same live stream, everything stays in sync automatically.
+* You don't need to allocate memory to store your data if you don't want to. Your program reacts to the data as it streams in.
+
## Install
+You'll need [Node][node] with [NPM][npm]. Once you've got that:
+
```sh
+cd todomvc/architecture-examples/reducers
npm install
```
+You'll also need [Browserify][].
+
+```sh
+npm install -g browserify
+```
+
## Usage
```sh
+cd todomvc/architecture-examples/reducers
npm run browserify
```
-Unfortunately [browserify][] watch is [broken on OSX 10.7][watch bug], but
+Unfortunately [Browserify][browserify] watch is [broken on OSX 10.7][watch bug], but
there is a [fix][watch fix] that did not made it to upstream yet. As a
temporary workaround you could use that fix to get watch working:
@@ -23,7 +42,8 @@ curl https://github.com/substack/node-browserify/pull/190.patch | git am
npm install -g
```
-
+[node]:http://nodejs.org/
+[npm]:http://npmjs.org/
[browserify]:https://github.com/substack/node-browserify
[watch bug]:https://github.com/substack/node-browserify/issues/166
[watch fix]:https://github.com/substack/node-browserify/pull/190

0 comments on commit 0a8ae98

Please sign in to comment.
Something went wrong with that request. Please try again.