hieudo-dev / pizza-patterns-ts

A collection of common design patterns used to solve pizza-related problems πŸ•

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pizza Patterns in TypeScript

Welcome to the pizza-patterns-ts πŸ• ! This repository is dedicated to exploring and implementing common design patterns to solve a bunch of pizza-related problems.

Table of Contents

Motivation

Design patterns are tried-and-true solutions to recurring problems in software design and so I believe that we ought to know them by heart.

Also I love pizzas πŸ• , so this was a great opportunity for me to explore and learn about 2 things that I love at the same time.

These patterns are tailored to address challenges such as creating different types of pizzas, managing toppings, and different delivery methods.

Getting Started

To get started, clone this repository to your local machine:

git clone https://github.com/your-username/pizza-patterns-ts.git
cd pizza-patterns-ts

Install dependencies:

npm install

Now you're ready to explore the pizza patterns and adapt them for your projects.

Available Patterns

Creational Patterns

  • Factory Method
  • Builder
  • Singleton

Structural Patterns

  • Decorator
  • Facade
  • Proxy

Behavioral Patterns

  • Observer
  • Strategy
  • Visitor

Contributing

If you have a new pizza pattern to add or improvements to existing ones, feel free to contribute! Follow these steps:

  1. Fork the repository.
  2. Create a branch: git checkout -b feature-new-pattern.
  3. Commit your changes: git commit -m 'Add a new pizza pattern'.
  4. Push to the branch: git push origin feature-new-pattern.
  5. Submit a pull request.

License

This repository is licensed under the MIT License - see the LICENSE file for details.

Enjoy coding your pizza solutions! πŸ•βœ¨

About

A collection of common design patterns used to solve pizza-related problems πŸ•


Languages

Language:TypeScript 100.0%