Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PredictPlay – Frontend Betting Simulation App

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.


🚀 Features

  • 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

🛠 Tech Stack

  • React 19
  • Vite
  • TailwindCSS
  • Framer Motion
  • Lucide Icons
  • localStorage (mock backend)

📦 Getting Started

1. Clone the Repository

https://github.com/transmogrify-cell/predictplay.git

cd predictplay

  1. Install Dependencies
npm install
  1. Start Development Server
npm run dev
  1. Build for Production
npm run build
  1. Preview Production Build
npm run preview
predictplay/
│── public/
│── src/
│   ├── App.jsx
│   ├── main.jsx
│   ├── index.css
│   ├── assets/
│── tailwind.config.js
│── package.json
│── README.md
How It Works

⚙️ How It Works

  • All user data is stored in localStorage
  • Wallet, transactions, slips, and KYC persist across refresh

🗄 SQL Backend

Key Database Tables

  • 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

Highlights

  • 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

📜 License

This project is intended for educational/demo use only.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages