Skip to content

marialunatito/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns in Practice

This repository is a collection of code examples that demonstrate various design patterns, implemented in JavaScript/TypeScript.

Purpose

The main objective is to strengthen my understanding of software design patterns by applying them in real-world scenarios. Each pattern is implemented in isolation and includes usage examples.

Patterns Included

  • Singleton
  • Factory
  • Strategy
  • Observer
  • Adapter
  • Decorator
  • and more...

Structure

Each pattern is located in its own directory, following a clear and consistent folder structure:

/src /pattern-type/patter-name

  • index.ts
  • README.md

Technologies

  • TypeScript
  • Node.js

Getting Started

To run the examples:

npm install
npm run dev-<factory_name>

About

Implement examples of each design pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published