Build your ultimate Bangladesh Premier League fantasy cricket squad — pick your players, manage your budget, and assemble the perfect XI.
BPL Dream Team is an interactive web application that lets cricket fans create their ideal Bangladesh Premier League squad. Users can browse available players, filter by category (batsman, bowler, all-rounder, wicketkeeper), and build a balanced team within a fixed coin budget — bringing the fantasy cricket experience right to the browser.
- 🧑🤝🧑 Player Selection — Browse the full BPL player roster with stats and details
- 💰 Budget / Coin System — Each player has a price; manage your wallet smartly
- ✅ Team Validation — Enforces squad size limits and prevents duplicate picks
- 🔄 Add & Remove Players — Easily modify your selected squad at any time
- 📊 Player Stats View — See key cricket stats before making your pick
- 📱 Responsive Design — Fully functional on mobile, tablet, and desktop
- 🔔 Toast Notifications — Real-time feedback for player add/remove actions
| Layer | Technology |
|---|---|
| Framework | React 18 |
| Build Tool | Vite |
| Styling | Tailwind CSS / CSS Modules |
| State Management | React Hooks (useState, useEffect) |
| Notifications | React Hot Toast |
| Data Source | Local JSON / Static Data |
| Deployment | Netlify |
| Language | JavaScript (ES6+) |
bpl-dream-team/
├── public/
│ └── players.json # BPL player data
├── src/
│ ├── assets/ # Images, icons
│ ├── components/
│ │ ├── Banner/ # Hero banner component
│ │ ├── PlayerCard/ # Individual player card
│ │ ├── PlayerGallery/ # Player listing grid
│ │ ├── SelectedPlayers/ # Selected squad view
│ │ └── Navbar/ # Top navigation & coin display
│ ├── App.jsx # Root component & state management
│ ├── main.jsx # Entry point
│ └── index.css # Global styles
├── .gitignore
├── index.html
├── package.json
├── vite.config.js
└── README.md
Make sure you have the following installed:
# 1. Clone the repository
git clone https://github.com/RS-Arafath/bpl-dream-team-bangladesh.git
# 2. Navigate into the project directory
cd bpl-dream-team-bangladesh
# 3. Install dependencies
npm install
# 4. Start the development server
npm run devThe app will be running at http://localhost:5173
npm run build- Start with your coin balance — You begin with a fixed budget (e.g. 10,000,000 coins)
- Browse players — View all available BPL players with their category, country, and price
- Add to squad — Click a player card to add them to your dream team
- Stay within budget — The app deducts coins on each pick; manage wisely
- Review your XI — Switch to the "Selected" tab to see your assembled squad
- Remove players — Change your mind? Remove and swap any time
- Component-based architecture with reusable React components
- Lifting state up — shared state managed at the
Applevel - Props drilling for passing handlers and data down the tree
- Conditional rendering for empty states and tab switching
- Array methods (
filter,find,map) for player data manipulation - Toast notifications for real-time user feedback
🔗 https://bpl-dream-team-bangladesh.netlify.app/
Contributions are welcome! If you'd like to improve this project:
# Fork the repo, then:
git checkout -b feature/your-feature-name
git commit -m "feat: add your feature description"
git push origin feature/your-feature-name
# Open a Pull RequestThis project is open source and available under the MIT License.
Arafath
- 🌐 GitHub: @RS-Arafath
- 💼 LinkedIn: rs-arafath
- 📧 Email: contact.arafath.bd@gmail.com
- 📍Dhaka, Bangladesh
⭐ If you found this project helpful, consider giving it a star on GitHub — it means a lot!