This project predicts cricket match outcomes in real-time based on ball-by-ball input. It uses a Machine Learning model (Logistic Regression) built from scartch, trained on historical T20 data.
This project is built with learnings from the Summer of ML(SOM 25) by BitByte Summer of Code (Bsoc 25)
The system consists of:
- 🖥️ Backend: Python FastAPI serving prediction APIs
- 💻 Frontend: React.js for live user interaction and visualization
-
Download and install Python from: 👉 https://www.python.org/downloads/
-
Ensure pip is added to your PATH (usually done automatically)
-
Verify installation:
python --version pip --version
-
Download and install Node.js from: 👉 https://nodejs.org/
-
This automatically installs npm (Node Package Manager)
-
Verify installation:
node -v npm -v
1️⃣ Navigate to the Backend folder:
cd Backend2️⃣ Install backend dependencies:
pip install -r requirements.txt3️⃣ Start the backend server:
python Model.py- The backend API will start running on
http://localhost:8000(or as configured) - ✅ Keep Backend running in one terminal window.
1️⃣ Open another terminal window:
2️⃣ Navigate to the Frontend folder:
cd Frontend3️⃣ Install frontend dependencies:
npm i4️⃣ Start the frontend development server:
npm run dev- The frontend will start on
http://localhost:3000(or as per your React/Vite/Next.js setup) - ✅ Keep Frontend running in another terminal window.
- ✅ Keep Backend running in one terminal window.
- ✅ Keep Frontend running in another terminal window.
- ✅ Open
http://localhost:3000in your browser. - ✅ Make sure both servers stay active during usage.
- If you face any CORS issues, ensure your backend allows frontend connections.
- Stop any server with
Ctrl + Cin the terminal.
| Component | Technology | Command |
|---|---|---|
| Backend | Python + FastAPI | python Model.py |
| Frontend | React.js + npm | npm run dev |
This README includes running both backend and frontend — all in one single file. Follow the steps in order for a hassle-free experience.


