-
Clone the repository
-
Run the following command in the terminal
- npm install
-
Now you are able to test each one of the examples of the patterns.
Obs: Some of the patterns don't have a main class to test. You can learn them just by taking a look at the main class and reading the README.md summaries.
- folder: src/patterns/Strategy/CameraAppCase
- folder: src/patterns/Strategy/DucksCase
- npm run test src/patterns/Adapter/DronesCase/target/DuckSimulator.ts
- npm run test src/patterns/Adapter/DucksCase/target/DuckSimulator.ts
- folder: src/patterns/Observer/SimpleCase
- folder: src/patterns/Observer/WeatherCase
- npm run test src/patterns/Decorator/CoffeeShopCase/StarbuzzCoffee.ts
- npm run test src/patterns/Decorator/PizzaStoreCase/PizzaStore.ts
- npm run test src/patterns/Iterator/CafeCase/client/Cafe.ts