1
0
mirror of https://github.com/danbee/scoreboard synced 2025-03-04 08:59:11 +00:00
Go to file
Dan Barber 2877b08a63
Don't swap the serve
The players already swap ends so this is unnecessary.
2015-12-08 12:56:27 +00:00
lib Don't swap the serve 2015-12-08 12:56:27 +00:00
public Add serve tracking 2015-12-08 12:07:55 +00:00
views Make app capable 2015-09-20 11:21:28 +01: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 Use redis-objects for persistence. 2015-05-10 14:55:37 +01:00
Gemfile.lock Add serve tracking 2015-12-08 12:07:55 +00:00
Procfile No longer have to limit to 1 worker and thread. 2015-05-10 14:57:25 +01:00
README.md Add serve tracking 2015-12-08 12:07:55 +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:

$ bundle install

Run the server:

$ bundle exec foreman start

Credits

Ping Pong Paddle icon by Anbileru Adaleru from the Noun Project