Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A game to test your familiarity with the ‘Gang of Four’ design patterns implemented in JavaScript.

License

NotificationsYou must be signed in to change notification settings

zoltantothcom/Design-Patterns-JavaScript

Repository files navigation

Build StatusCoverage StatusCodacy BadgeGreenkeeper badge

Design Patterns - a quick game to test your familiarity with the 'Gang of Four' design patterns implemented in JS.

Design Patterns - game results screenshot

About

This is a small game to get you familiar with all the 23 Gang of Four design patterns implemented in JavaScript.

Creational Patterns

  • Abstract factory
  • Builder
  • Factory method
  • Prototype
  • Singleton

Structural Patterns

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

Behavioral Patterns

  • Chain of responsibility
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template
  • Visitor

How To Run Locally

  1. Clone this repo
git clone git@github.com:zoltantothcom/Design-Patterns-JavaScript.git
  1. Switch to project folder
cd Design-Patterns-JavaScript
  1. Install all the dependencies
yarn
  1. Time to start the engine
yarn start
  1. Voila! The project is running onhttp://localhost:8080

Running the Tests

  • To run the tests
yarn test
  • To see the detailed test coverage
yarn test:coverage

Inspiration and Credits

If you want a deeper dive into the subject feel free to check outLearning JavaScript Design Patterns byAddy Osmani.

License

Anyone 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.

SeeUnlicense for full details.

About

A game to test your familiarity with the ‘Gang of Four’ design patterns implemented in JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp