Shot Clock is a real time competitive billiards clock that sychronizes across multiple clients. A clock's creator controls the clock and scoreboard, and other clients can connect to it using a shared code.
- React
- Tailwind CSS
- Node.js
- Socket.IO
This is a single page application built in React with Tailwind for styling. Socket.IO is used to facilitate WebSockets for real-time clock functionality and synchronization.
The backend is a simple Node.js server that also integrates SocketIO. The server manages a "room" for each clock, forwards events from the controller to other room connections, and closes rooms when not active.
- Node.js and npm
- Clone this repository
git clone https://github.com/aaluzzi/shot-clock.git cd shot-clock - Install dependencies
npm install - Run the application
npm run dev
