cd frontend
npm install
npm run dev
- Runs the React app locally (usually on
http://localhost:5173).
cd backend
pip install -r requirements.txt
python app.py
- Runs Flask/FastAPI server on
http://localhost:5000 (adjust port if needed).
- Connects to MongoDB and validates Firebase tokens for secure API calls.
- Configure your MongoDB URI in
backend/config.py or .env.
- Ensure collections:
users, scores, achievements.
- User signs up or logs in via Firebase Auth.
- React frontend tracks hand gestures in real time using MediaPipe.
- Fruits appear with math answers — slice the correct ones to earn points.
- Game progress and scores are sent to Flask/FastAPI, validated, and stored in MongoDB.
- Leaderboard and achievements are fetched and displayed dynamically.
- Hands-Free Gameplay: Minimal hardware needed — just a webcam.
- ML-Powered Interaction: AI tracks gestures in real time for immersive gameplay.
- Gamified Learning: Math practice feels like a fast-paced arcade game.
- Full-Stack Integration: React frontend ↔ Flask backend ↔ MongoDB storage ↔ Firebase Auth.
- Add fractions, algebra, and geometry quizzes.
- Real-time multiplayer mode.
- Mobile deployment with AR-style slicing.
- Analytics dashboard for teachers/parents.