PredictPlay is a React + Vite + TailwindCSS frontend project that simulates a modern sports-betting platform.
It includes mock authentication, wallet management, bet slips, markets, live fixtures, and localStorage persistence — all in a single-page app.
- User Authentication (mock)
- Sports Markets (Cricket, Football, Basketball)
- Bet Slip System (multi-selection)
- Wallet with Deposit/Withdrawal (demo mode)
- Transaction History
- Profile + KYC (mock verification)
- Responsible Gaming Section
- Persistent data using
localStorage - Responsive UI using TailwindCSS
- Smooth UI animations via Framer Motion
- React 19
- Vite
- TailwindCSS
- Framer Motion
- Lucide Icons
- localStorage (mock backend)
https://github.com/transmogrify-cell/predictplay.gitcd predictplay
- Install Dependencies
npm install- Start Development Server
npm run dev- Build for Production
npm run build- Preview Production Build
npm run previewpredictplay/
│── public/
│── src/
│ ├── App.jsx
│ ├── main.jsx
│ ├── index.css
│ ├── assets/
│── tailwind.config.js
│── package.json
│── README.md
How It Works- All user data is stored in localStorage
- Wallet, transactions, slips, and KYC persist across refresh
- users – user profiles (with roles & hashed passwords)
- wallet – linked to users, stores balance
- sports – sports categories
- teams – sports teams
- games – fixtures with sport, teams, time, status
- selections – betting options + odds
- bets – placed bets
- bet_items – selections inside a bet
- transactions – deposits, withdrawals, payout logs
- audit_log – safety & tracking logs
- Wallet auto-created via trigger
- Bet placement automatically deducts balance
- Winning bets trigger payouts
- Withdrawal validation to avoid negative balance
- Full audit history for transparency
This project is intended for educational/demo use only.