Skip to content

A repository to learn and practice Design Patterns in Typescript

Notifications You must be signed in to change notification settings

hayatokzn/Design-Patterns-Typescript

Repository files navigation

Design Patterns in Typescript

📖 Content

🔍 Behavioral

  • Chain of Responsibility
  • Command
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

🏗️ Creational

  • Abstract Factory
  • Builder
  • Factory Method
  • Prototype
  • Singleton

🏛️ Structural

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

💻 How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm or yarn) installed on your computer. From your command line:

Configuration Project

# Clone this repository
$ git clone https://github.com/vinicius-r-s/Design-Patterns-Typescript.git

# Go into the repository
$ cd Design-Patterns-Typescript

# Install dependencies
$ npm i
# Or
$ yarn

Run a Design Pattern

# Yarn
$ yarn ts-node src/type-design-pattern-name/design-pattern-name/index.ts
# Or Globally
$ ts-node src/type-design-pattern-name/design-pattern-name/index.ts

📬 Credits