Giter Club home page Giter Club logo

typescript-design-patterns-study's Introduction

TypeScript design patterns study

Playground for studying design patterns, solid principles, GoF, testing and more with TypeScript

Index

Introduction

This repo has been created to study design patterns, solid principles, GoF, testing and more with TypeScript.

Folder structure

All topics are in the src folder, separated by they topic. All topic has an README.md file and his sub topics as well.

Running App

To install follow these steps:

Clone the repo

git clone [email protected]:deverebor/typescript-design-patterns-study.git

Enter the repo directory

cd typescript-design-patterns-study

Install the dependencies

npm i

Using the project

Follow these steps:

  • npm run start:srp - single responsibility principle
  • npm run start:ocp - open closed principle
  • npm run start:lsp - liskov substitution principle
  • npm run start:isp - interface segregation principle
  • npm run start:dip - dependency inversion principle
  • npm run start:legacy
  • npm run test - test the project
  • npm run test:silent - silent with watch test
  • npm run test:coverage - to generate coverage report
  • creational
    • Singleton - npm run creational:singleton
    • Builder - npm run creational:builder
    • ProtoType
      • npm run creational:proto-deep - Deep Clone
      • npm run creational:proto-shallow - Shallow Clone
      • npm run creational:proto-js-obj - JS Object Clone
      • npm run creational:proto-js-func - JS Function Clone
    • FactoryMethod - npm run creational:factory
    • AbstractFactory - npm run creational:abstract-factory
  • structural
    • Composite
      • npm run structural:composite-classic - Classic Structure
      • npm run structural:composite-validation - Validation Structure
    • Adapter - npm run structural:adapter
    • Bridge - npm run structural:bridge
    • Decorator - npm run structural:decorator
    • Facade - npm run structural:facade
    • Proxy - npm run structural:proxy
    • Flyweight - npm run structural:flyweight
  • behavioral
    • Strategy - npm run behavioral:strategy
    • Command - npm run behavioral:command
    • Memento - npm run behavioral:memento
    • State - npm run behavioral:state
    • Mediator - npm run behavioral:mediator

Initialize the project you want

npm run start:dip

Developer with ❤️‍🔥 by Lucas Souza (@deverebor)

typescript-design-patterns-study's People

Contributors

deverebor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.