Coder Social home page Coder Social logo

arvolution-ping-pong's Introduction

Arvolution Ping Pong Scorekeeper

Getting Setup

  1. Download or clone the repo and navigate to the repo's root directory.
  2. Run npm install to install all dependencies.
  3. Run npm run start to start the dev server.
  4. Navigate to http://localhost:3000.

Implementation

The ping pong scorekeeper uses localStorage to keep track of score and to persist the data on reload. If the app was any more complicated, I probably would have used a state management tool like Redux, or leveraged useContext for more complex pieces of state. For the scope of this project, using localStorage was sufficient and quick to get up and running.

To reset your game session, open navigate to the "Local Storage" section in the "Applications" tab of your Developer Console. Click on http://localhost:3000 to access your local storage and delete the local storage key PING_PONG_GAME_SESSION.

For Google Chrome: https://developer.chrome.com/docs/devtools/storage/localstorage/

For Firefox: https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector

Creative Liberty

The wireframes gave a basic layout to how the scorekeeper project should have been laid out.

I did take some creative liberty with adding Arvolution's logo, and tried to emulate some of Arvolution's basic brand that I deduced from the logo.

Improvements

If I had more time, there's a couple areas of improvements I would like to make, including the following:

  1. Refactor the frontend component architecture to be more repeatable. An example would be the button components that have the same style. A shared <Button /> that is reusable would be my first move.
  2. Autosave on "Add win" button clicks.
  3. Adding a modal that pops up when you land on the root directory and prompts you to continue a session if there's an existing session stored in local storage.
  4. More comprehensive tests.

arvolution-ping-pong's People

Contributors

imbaoss avatar

Watchers

James Cloos 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.