1
0
mirror of https://github.com/danbee/scoreboard synced 2025-03-04 08:59:11 +00:00
Go to file
2015-05-10 15:25:34 +01:00
lib Use redis-objects for persistence. 2015-05-10 14:55:37 +01:00
public Fix styling in iOS Safari. 2015-05-10 15:25:34 +01:00
views Remove compromised Pusher key. 2015-05-09 16:02:27 +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 Use redis-objects for persistence. 2015-05-10 14:55:37 +01:00
Procfile No longer have to limit to 1 worker and thread. 2015-05-10 14:57:25 +01:00
README.md Add readme. 2015-05-10 15:13:16 +01:00
scoreboard.rb Rename to Scoreboard. 2015-05-10 15:09:30 +01: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