1
0
mirror of https://github.com/danbee/scoreboard synced 2025-03-04 08:59:11 +00:00
Go to file
2016-02-26 16:28:37 +00:00
lib Make sure the serve is updated on undo 2015-12-08 14:25:05 +00:00
public Make the reset button look more button like 2015-12-16 10:55:35 +00:00
views Use black translucent status 2015-12-08 18:39:29 +00:00
.env.example First commit. 2015-05-08 14:58:36 +01:00
.gitignore First commit. 2015-05-08 14:58:36 +01:00
.ruby-version Specify ruby version. 2015-05-10 15:10:35 +01:00
config.ru Rename to Scoreboard. 2015-05-10 15:09:30 +01:00
Gemfile Remove foreman from the Gemfile 2016-02-26 16:28:37 +00:00
Gemfile.lock Remove foreman from the Gemfile 2016-02-26 16:28:37 +00:00
Procfile No longer have to limit to 1 worker and thread. 2015-05-10 14:57:25 +01:00
README.md Remove foreman from the Gemfile 2016-02-26 16:28:37 +00:00
scoreboard.rb Add serve tracking 2015-12-08 12:07:55 +00:00

Table Tennis Score Board

Implements a table tennis scoreboard which can be updated by PUTing to particular URL's. This was part of a hack day project that involved buttons hooked up to an ESP-01 module programmed to hit the REST end points to update the scores.

Games are automatically updated when a player wins (score hits at least 11 and is a clear 2 point lead). Players automatically switch sides between games.

The back end is Sinatra and the front end is powered by Riot.js. Redis is used for data persistence. Pusher is used for communication between the back end and the front.

Instructions

Install the bundle and foreman:

$ bundle install
$ gem install foreman

Run the server:

$ foreman start

Credits

Ping Pong Paddle icon by Anbileru Adaleru from the Noun Project