{"id":13554967,"url":"https://github.com/RefactoringGuru/design-patterns-typescript","last_synced_at":"2025-04-03T07:33:25.391Z","repository":{"id":37406016,"uuid":"133028914","full_name":"RefactoringGuru/design-patterns-typescript","owner":"RefactoringGuru","description":"Design Pattern Examples in TypeScript","archived":false,"fork":false,"pushed_at":"2024-05-18T11:14:06.000Z","size":185,"stargazers_count":1049,"open_issues_count":4,"forks_count":159,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-10-16T09:05:48.153Z","etag":null,"topics":["design-patterns","typescript"],"latest_commit_sha":null,"homepage":"https://refactoring.guru/design-patterns/typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RefactoringGuru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T11:00:29.000Z","updated_at":"2024-10-14T19:18:55.000Z","dependencies_parsed_at":"2024-08-01T12:37:02.809Z","dependency_job_id":null,"html_url":"https://github.com/RefactoringGuru/design-patterns-typescript","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/RefactoringGuru%2Fdesign-patterns-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RefactoringGuru%2Fdesign-patterns-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RefactoringGuru%2Fdesign-patterns-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RefactoringGuru%2Fdesign-patterns-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RefactoringGuru","download_url":"https://codeload.github.com/RefactoringGuru/design-patterns-typescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222935627,"owners_count":17060398,"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","typescript"],"created_at":"2024-08-01T12:02:58.811Z","updated_at":"2024-11-04T03:31:32.845Z","avatar_url":"https://github.com/RefactoringGuru.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Programming languages"],"sub_categories":["TypeScript"],"readme":"# Design Patterns in TypeScript\n\nThis repository is part of the [Refactoring.Guru](https://refactoring.guru/design-patterns) project.\n\nIt contains TypeScript examples for all classic GoF design patterns. Each pattern includes two examples:\n\n- [x] **Conceptual** examples show the internal structure of patterns, including detailed comments.\n\n- [x] **RealWorld** examples show how patterns can be used in real-world web applications.\n\n## Requirements\n\nFor simplicity reasons, the examples are console apps. In order to launch them, you have to install [Node.js and NPM](https://nodejs.org/en/) on your computer and then install [TypeScript compiler](https://github.com/Microsoft/TypeScript) and [TypeScript Node extension](https://github.com/TypeStrong/ts-node) like this:\n\n```\nnpm install -g typescript\nnpm install -g ts-node\n```\n\nWhen you have all the required software installed, the examples can be launched via the command line as follows:\n\n```\nts-node src/Path-to-example/Example.ts\n```\n\nFor the best experience, I recommend working with examples with these IDEs:\n\n- [WebStorm](https://www.jetbrains.com/webstorm/)\n- [Visual Studio Code](https://code.visualstudio.com/)\n\n\n## Contributor's Guide\n\nI appreciate any help, whether it's a simple fix of a typo or a whole new example. Please read the [Contributor's Guide](CONTRIBUTING.md) to get more information.\n\n## License\n\nThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-nd/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-nd/4.0/80x15.png\" /\u003e\u003c/a\u003e\n\n\n## Credits\n\nAuthors: Alexey Pyltsyn ([@lex111](https://github.com/lex111)) and Alexander Shvets ([@neochief](https://github.com/neochief))\n\nContributors: [See the list of contributors](https://github.com/RefactoringGuru/design-patterns-typescript/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRefactoringGuru%2Fdesign-patterns-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRefactoringGuru%2Fdesign-patterns-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRefactoringGuru%2Fdesign-patterns-typescript/lists"}