Welcome to the Design Patterns in TypeScript repository! This repository is dedicated to exploring and understanding various design patterns using TypeScript. Whether you're new to design patterns or looking to solidify your knowledge, this repository aims to provide a comprehensive and practical approach.
Design patterns are proven solutions to common software design problems. This repository demonstrates how to implement various design patterns using TypeScript. By the end of this project, you will have a solid understanding of how to apply these patterns to real-world scenarios.
Design patterns provide a standard terminology and are specific to particular scenarios. These patterns help:
- Improve code readability.
- Make code easier to understand and maintain.
- Provide a best-practice solution to common problems.
- Encourage code reuse.
The repository is organized by different types of design patterns. Each design pattern is implemented in a separate directory and contains:
- A brief explanation of the pattern.
- TypeScript code demonstrating the pattern.
- Example usage of the pattern.
Here's an overview of the
srcdirectory structureCreationalPatterns/AbstractFactory/FactoryMethod/AbstractFactory/Builder/
StructuralPatterns/Bridge/Composite/
To run the examples in this repository, you need to have Node.js, PNPM (Fast, disk space efficient package manager) and TypeScript installed.
- Clone this repository:
git clone https://github.com/thuraaung2493/design-patterns.git- Navigate to the project directory:
cd design-patterns- Install the dependencies:
pnpm install- Run:
pnpm run dev