Example code for the Put JavaScript Design Patterns into Practice course from Tuts+
-
Clone repository to your machine
git clone https://github.com/danwellman/js-patterns.git
-
Run Bower install
bower install
-
Open index.html in your browser and open the browser's console
-
Use the global runExample() method to run one of the examples
runExample('factory')
Valid example names (to be passed in string format to the runExample() function) are:
- factory
- pubsub
- strategy
- observer
- cor
- mediator
- iterator
- facade
- decorator
- adapter
- composite
- proxy