Skip to content

thuraaung2493/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns in TypeScript

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.

Table of Contents

Introduction

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.

Why Design Patterns?

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.

Project Structure

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 src directory structure
    • CreationalPatterns/
      • AbstractFactory/
      • FactoryMethod/
      • AbstractFactory/
      • Builder/
    • StructuralPatterns/
      • Bridge/
      • Composite/

Installation

To run the examples in this repository, you need to have Node.js, PNPM (Fast, disk space efficient package manager) and TypeScript installed.

  1. Clone this repository:
 git clone https://github.com/thuraaung2493/design-patterns.git
  1. Navigate to the project directory:
 cd design-patterns
  1. Install the dependencies:
  pnpm install
  1. Run:
  pnpm run dev

About

Learning Object-Oriented Design Patterns with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors