Implementation of all 23 GoF (Gang of Four) Design Patterns in TypeScript.
✔️ Creational
✔️ Structural
✔️ Behavioural
- Command
- Chain of Responsibility (CoF)
- Observer
- Interpreter
- Iterator
- Mediator
- Memento
- State
- Strategy
- Template Method
- Visitor
# You may install Node.js & npm in case you don't have them your system
# You may also install Typescript in case you don't have on your system
~ npm install -g typescript
# Install dependencies
~ git clone https://github.com/oussamabouchikhi/design-patterns-in-typescript.git
# cd into the project directory
~ cd clone design-patterns-in-typescript
# Install dependencies
~ yarn install
# in 2 separate tabs
# Run this command to compile typescript in watch mode
~ tsc -w
# Run the compiled javascript code
# ~ node path
~ node ./dist/creational/facade/client.js
This project is open-sourced under the MIT license.