An interactive baseball card game that simulates MLB gameplay using real player statistics and dynamic game mechanics.
BatterUp MLB is a full-stack web application that allows users to:
- Build custom decks using MLB player cards
- Play real-time baseball games against other users
- Experience dynamic gameplay with pitch-by-pitch mechanics
- Track game statistics and history
- Card-based gameplay system
- Real MLB player statistics integration
- Dynamic game commentary
- Real-time multiplayer support
- Detailed game statistics tracking
- React
- Firebase Authentication
- CSS
- TypeScript
- FastAPI
- Firebase/Firestore
- Google Cloud Platform
- Python
Each player must construct a deck with:
- 1 Catcher
- 5 Pitchers
- 4 Infielders
- 3 Outfielders
- 4 Hitters
- Pitch Selection
- Choose pitching style
- Ball/Strike count system
- Batting
- Select hitting approach
- Outcome based on player stats
- Base Running
- Automatic advancement
- Run scoring
- Clone the repository
git clone [https://github.com/atharv14/BatterUp.git]
cd batterup-mlb- Set up environment
# Backend
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Frontend
cd frontend/BatterUp
npm install- Configure environment variables
# Backend (.env)
FIREBASE_CREDENTIALS_PATH=path/to/credentials.json
FIREBASE_STORAGE_BUCKET=batterup-mlb-hack.firebasestorage.app
GOOGLE_API_KEY=your-api-key
# Frontend (.env)
REACT_APP_API_URL=http://localhost:8000
REACT_APP_FIREBASE_CONFIG=your-firebase-config- Start development servers
# Backend
cd backend
uvicorn main:app --reload
# Frontend
cd frontend/BatterUp
npm start- MLB Stats API
- Firebase/Google Cloud Platform
- Open source contributors