{"id":18577208,"url":"https://github.com/deverebor/typescript-design-patterns-study","last_synced_at":"2025-04-10T09:30:46.516Z","repository":{"id":41534978,"uuid":"510037729","full_name":"deverebor/typescript-design-patterns-study","owner":"deverebor","description":"Playground for studying design patterns, solid principles, GoF, testing and more with TypeScript","archived":false,"fork":false,"pushed_at":"2022-09-22T20:23:06.000Z","size":398,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T19:08:35.697Z","etag":null,"topics":["design-patterns","gof-patterns","jest","solid-principles","typescript","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deverebor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-03T13:55:00.000Z","updated_at":"2023-04-06T12:09:41.000Z","dependencies_parsed_at":"2023-01-18T11:15:21.660Z","dependency_job_id":null,"html_url":"https://github.com/deverebor/typescript-design-patterns-study","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Ftypescript-design-patterns-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Ftypescript-design-patterns-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Ftypescript-design-patterns-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Ftypescript-design-patterns-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deverebor","download_url":"https://codeload.github.com/deverebor/typescript-design-patterns-study/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248191632,"owners_count":21062540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design-patterns","gof-patterns","jest","solid-principles","typescript","unit-testing"],"created_at":"2024-11-06T23:28:16.925Z","updated_at":"2025-04-10T09:30:45.268Z","avatar_url":"https://github.com/deverebor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript design patterns study\n\n\u003e Playground for studying design patterns, solid principles, GoF, testing and more with TypeScript\n\n## Index\n\n- [TypeScript design patterns study](#typescript-design-patterns-study)\n  - [Index](#index)\n    - [Introduction](#introduction)\n      - [Folder structure](#folder-structure)\n    - [Running App](#running-app)\n    - [Using the project](#using-the-project)\n      - [SOLID](#solid)\n      - [TestPratice](#testpratice)\n      - [GoF](#gof)\n\n### Introduction\n\nThis repo has been created to study design patterns, solid principles, GoF, testing and more with TypeScript.\n\n#### Folder structure\n\nAll topics are in the `src` folder, separated by they topic. All topic has an `README.md` file and his sub topics as well.\n\n### Running App\n\nTo install follow these steps:\n\n\u003e Clone the repo\n\n```zsh\ngit clone git@github.com:deverebor/typescript-design-patterns-study.git\n```\n\n\u003e Enter the repo directory\n\n```zsh\ncd typescript-design-patterns-study\n```\n\n\u003e Install the dependencies\n\n```zsh\nnpm i\n```\n\n### Using the project\n\nFollow these steps:\n\n#### [SOLID](src/SOLID/)\n\n- npm run start:srp - single responsibility principle\n- npm run start:ocp - open closed principle\n- npm run start:lsp - liskov substitution principle\n- npm run start:isp - interface segregation principle\n- npm run start:dip - dependency inversion principle\n- npm run start:legacy\n\n#### [TestPratice](src/TestPratice/)\n\n- npm run test - test the project\n- npm run test:silent - silent with watch test\n- npm run test:coverage - to generate coverage report\n\n#### [GoF](src/GOF/)\n\n- creational\n  - [Singleton](src/GOF/creational/singleton/) - npm run creational:singleton\n  - [Builder](src/GOF/creational/builder/) - npm run creational:builder\n  - [ProtoType](src/GOF/creational/prototype/)\n    - npm run creational:proto-deep - Deep Clone\n    - npm run creational:proto-shallow - Shallow Clone\n    - npm run creational:proto-js-obj - JS Object Clone\n    - npm run creational:proto-js-func - JS Function Clone\n  - [FactoryMethod](src/GOF/creational/factory-method/) - npm run creational:factory\n  - [AbstractFactory](src/GOF/creational/abstract-factory/) - npm run creational:abstract-factory\n- structural\n  - [Composite](src/GOF/structural/composite/)\n    - npm run structural:composite-classic - Classic Structure\n    - npm run structural:composite-validation - Validation Structure\n  - [Adapter](src/GOF/structural/adapter/) - npm run structural:adapter\n  - [Bridge](src/GOF/structural/bridge/) - npm run structural:bridge\n  - [Decorator](src/GOF/structural/decorator/) - npm run structural:decorator\n  - [Facade](src/GOF/structural/facade/) - npm run structural:facade\n  - [Proxy](src/GOF/structural/proxy/) - npm run structural:proxy\n  - [Flyweight](src/GOF/structural/flyweight/) - npm run structural:flyweight\n- behavioral\n  - [Strategy](src/GOF/behavioral/strategy/) - npm run behavioral:strategy\n  - [Command](src/GOF/behavioral/command/) - npm run behavioral:command\n  - [Memento](src/GOF/behavioral/memento/) - npm run behavioral:memento\n  - [State](src/GOF/behavioral/state/) - npm run behavioral:state\n  - [Mediator](src/GOF/behavioral/mediator/) - npm run behavioral:mediator\n\n\u003e Initialize the project you want\n\n```zsh\nnpm run start:dip\n```\n\n---\n\n\u003cp align='center'\u003e\n  Developer with ❤️‍🔥 by Lucas Souza (@deverebor)\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeverebor%2Ftypescript-design-patterns-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeverebor%2Ftypescript-design-patterns-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeverebor%2Ftypescript-design-patterns-study/lists"}