All projects · Supabase Full-Stack Apps
EventPro — Events & Registration Manager
A single-file, full-stack (no-auth) events and registration manager with a public event-booking site and a dark admin dashboard.
A single-file, full-stack (no-auth) events and registration manager with a public event-booking site and a dark admin dashboard. Its standout feature is a race-safe capacity guard that prevents overselling seats when attendees register.
- Race-safe capacity guard: claims a seat via conditional UPDATE (registered+1 guarded by the known value) with re-check, then inserts the registration and rolls back the seat on failure
- DB-level oversell protection with a CHECK(registered <= capacity) constraint plus status/quantity checks
- Single index.html with hash-based view switch (#public / #admin) and a MOCK fallback that runs fully client-side using TODAY+N dates so demo events stay upcoming
- Public page shows only Published, future events with live seats-left / 'Event Full' states and progress bars; admin dashboard has stat cards plus SVG line + donut charts computed live
Built with: HTML, Vanilla JavaScript, Supabase JS v2 (CDN), PostgreSQL, Plus Jakarta Sans, Inline SVG charts