{"id":13657011,"url":"https://github.com/zoltantothcom/Design-Patterns-JavaScript","last_synced_at":"2025-04-24T01:30:55.547Z","repository":{"id":34552823,"uuid":"166296001","full_name":"zoltantothcom/Design-Patterns-JavaScript","owner":"zoltantothcom","description":"A game to test your familiarity with the ‘Gang of Four’ design patterns implemented in JavaScript.","archived":false,"fork":false,"pushed_at":"2022-12-10T16:49:41.000Z","size":3657,"stargazers_count":601,"open_issues_count":49,"forks_count":36,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-02T05:06:41.054Z","etag":null,"topics":["javascript","javascript-design-pattern","javascript-game"],"latest_commit_sha":null,"homepage":"https://designpatternsgame.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoltantothcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-17T20:59:10.000Z","updated_at":"2024-07-24T09:37:23.000Z","dependencies_parsed_at":"2023-01-15T07:45:15.298Z","dependency_job_id":null,"html_url":"https://github.com/zoltantothcom/Design-Patterns-JavaScript","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/zoltantothcom%2FDesign-Patterns-JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2FDesign-Patterns-JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2FDesign-Patterns-JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoltantothcom%2FDesign-Patterns-JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoltantothcom","download_url":"https://codeload.github.com/zoltantothcom/Design-Patterns-JavaScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223940807,"owners_count":17228900,"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":["javascript","javascript-design-pattern","javascript-game"],"created_at":"2024-08-02T05:00:35.778Z","updated_at":"2024-11-10T10:30:36.752Z","avatar_url":"https://github.com/zoltantothcom.png","language":"JavaScript","readme":"# Design Patterns Game\n\n[![Build Status](https://travis-ci.org/zoltantothcom/Design-Patterns-JavaScript.svg?branch=master)](https://travis-ci.org/zoltantothcom/Design-Patterns-JavaScript) [![Coverage Status](https://coveralls.io/repos/github/zoltantothcom/Design-Patterns-JavaScript/badge.svg?branch=master)](https://coveralls.io/github/zoltantothcom/Design-Patterns-JavaScript?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5f4e97b771504e23b0b414d2cbc69506)](https://www.codacy.com/app/zoltantothcom/Design-Patterns-JavaScript) [![Greenkeeper badge](https://badges.greenkeeper.io/zoltantothcom/Design-Patterns-JavaScript.svg)](https://greenkeeper.io/)\n\nDesign Patterns - a quick game to test your familiarity with the 'Gang of Four' design patterns implemented in JS.\n\n### :zap: [PLAY HERE](https://designpatternsgame.com/)\n\n![Design Patterns - game results screenshot](/static/screenshot.png?sanitize=true\u0026raw=true)\n\n- [About](#about)\n- [How To Run Locally](#how-to-run-locally)\n- [Running the Tests](#running-the-tests)\n- [Inspiration and Credits](#inspiration-and-credits)\n- [License](#license)\n\n## About\n\nThis is a small game to get you familiar with all the 23 Gang of Four design patterns implemented in JavaScript.\n\n### Creational Patterns\n\n- Abstract factory\n- Builder\n- Factory method\n- Prototype\n- Singleton\n\n### Structural Patterns\n\n- Adapter\n- Bridge\n- Composite\n- Decorator\n- Facade\n- Flyweight\n- Proxy\n\n### Behavioral Patterns\n\n- Chain of responsibility\n- Command\n- Interpreter\n- Iterator\n- Mediator\n- Memento\n- Observer\n- State\n- Strategy\n- Template\n- Visitor\n\n## How To Run Locally\n\n1. Clone this repo\n\n```\ngit clone git@github.com:zoltantothcom/Design-Patterns-JavaScript.git\n```\n\n2. Switch to project folder\n\n```\ncd Design-Patterns-JavaScript\n```\n\n3. Install all the dependencies\n\n```\nyarn\n```\n\n4. Time to start the engine\n\n```\nyarn start\n```\n\n5. Voila! The project is running on [http://localhost:8080](http://localhost:8080)\n\n## Running the Tests\n\n- To run the tests\n\n```\nyarn test\n```\n\n- To see the detailed test coverage\n\n```\nyarn test:coverage\n```\n\n## Inspiration and Credits\n\n- Inspired by the very well-known [JavaScript Guessing Game](https://javascript-game.firebaseapp.com/)\n\n- Code samples impudently taken from the awesome compilation of [Design Patterns JS](https://github.com/fbeline/Design-Patterns-JS)\n\nIf you want a deeper dive into the subject feel free to check out [Learning JavaScript Design Patterns](https://addyosmani.com/resources/essentialjsdesignpatterns/book/) by _Addy Osmani_.\n\n## License\n\nAnyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.\n\nSee [Unlicense](http://unlicense.org) for full details.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoltantothcom%2FDesign-Patterns-JavaScript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoltantothcom%2FDesign-Patterns-JavaScript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoltantothcom%2FDesign-Patterns-JavaScript/lists"}