Christopher Mayor bc18555432 [#11] WebSocket reconnection with exponential backoff + offline vote queue
- Exponential backoff: 1s → 2s → 4s → … → 30s max
- Full-screen overlay when disconnected (spinner + message)
- Votes cast offline are queued and replayed on reconnect
- Deduplicated queue: same voter+option only queued once
- ✓ Reconnected toast on successful reconnect
2026-04-28 21:43:58 -07:00
2026-04-28 21:42:41 -07:00

🏄 Cabo Bachelor Party Voting App

Real-time group voting for the bachelor party — hotels, golf, nightlife, excursions, and full itineraries.

Quick Start

cd voting_app
npm install
node server.js
# → http://localhost:3001

Features

  • Real-time WebSocket voting — all clients update instantly
  • 5 categories — Hotels, Golf, Nightlife, Excursions, Full Itineraries
  • Add suggestions — anyone can propose new venues
  • Admin approval — pending options require approval before going live
  • Responsive — works on desktop and mobile

Data

Votes are stored in data/votes.json (created on first run). Edit directly or use the admin panel.

Deployment

Deployed on ice:3001 via Node.js directly (not Docker). Routed through Traefik on ubuntu via cabo-voting.yml.

See Gitea Issues for the UI/UX roadmap.

Tech Stack

  • Node.js + Express
  • WebSocket (ws)
  • Vanilla JS frontend (no framework)
  • No database — JSON file persistence
Description
Cabo Bachelor Party real-time voting app — Node.js/Express + WebSocket, deployable on any homelab host
Readme 3.5 MiB
Languages
HTML 53.7%
JavaScript 43.9%
CSS 2.4%