Giter Site home page Giter Site logo

janszarwaryn / live-scoreboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 326 KB

Live Odds Services

Home Page: http://live-scoreboard.jspace.pl/

HTML 11.91% CSS 6.36% JavaScript 81.72%
football-data localstorage react scoreboard testing-library mui

live-scoreboard's Introduction

Live Football World Cup Scoreboard

This project is a simple React application for managing and displaying live football scores during the World Cup. It allows users to add new games, update scores, and view the overall summary of the games.

Features

  • Add new games with home and away teams
  • Update scores for each game in progress
  • View a summary of all games
  • Store game data in localStorage to persist across browser refreshes
  • Responsive design using Material-UI

Installation

To install the project, follow these steps:

  1. Clone the repository:

git clone https://github.com/janszarwaryn/live-scoreboard.git

  1. Change to the project directory:

cd live-scoreboard

  1. Install dependencies:

npm install

  1. Start the development server:

npm start

  1. Open your browser and navigate to http://localhost:3000 to view the application.

Usage

  1. Add a new game:

    • Enter the names of the home and away teams in the respective input fields.
    • Click the "Start Game" button to add the game to the "Games in Progress" section.
  2. Update scores:

    • In the "Games in Progress" section, use the "+" and "-" buttons to increase or decrease the score for each team.
    • Scores are automatically updated in the game summary.
  3. View game summary:

    • The "Game Summary" section displays a list of all games, including the home and away teams, and their respective scores.
  4. Finish a game:

    • In the "Games in Progress" section, click the "Finish Game" button to remove the game from the list of games in progress.
    • The game will still be displayed in the game summary.
  5. Browser refresh:

    • The application stores game data in localStorage, so your data will persist across browser refreshes.

Testing

To run the tests for the project, use the following command:

npm test

This will run the test suite and display the test results in the terminal.

Contributing

If you'd like to contribute to the project, please submit a pull request with your proposed changes or create an issue detailing the changes you'd like to see. :P

live-scoreboard's People

Contributors

janszarwaryn avatar

Watchers

 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.