Full-Stack · 2026 Completed
World Cup Predictor 2026
A real-time football prediction platform where users predict exact scores, knockout advancement, and the champion, then compete on global and private leaderboards.
- React
- Vite
- Tailwind CSS
- Supabase
- PostgreSQL
- Row Level Security
- GitHub Actions
- GitHub Pages
Prediction states before kickoff, including automatic winner selection from the score.
- Prediction states before kickoff, including automatic winner selection from the score.
- Players can select a result directly or enter an exact score before kickoff.
- Entering a score automatically selects the matching winner while keeping the prediction editable until kickoff.
Features
- Exact-score predictions per match
- Prediction locking at kickoff
- Global leaderboard
- Private groups
- Champion and bracket predictions
Challenges
- Preventing users from editing predictions after a match starts.
- Keeping scoring logic trustworthy without a dedicated application server.
- Synchronising live scores and goal events into prediction results.
Solutions
Enforced prediction locking with server-side checks tied to kickoff time. Moved scoring into protected database logic so points cannot be tampered with. Used Supabase Row Level Security to isolate each user's data.
Security
- Row Level Security on every user-owned table.
- Predictions immutable after lock time.
- Authenticated access required for writes.
