SportsHub is a revolutionary sports management platform that bridges the gap between athletes, clubs, and AI-powered coaching. Built with the MERN stack, it offers a comprehensive ecosystem for sports enthusiasts to connect, compete, and excel through cutting-edge technology.
To democratize sports coaching and create a global community where every athlete can access world-class training, connect with clubs, and achieve their sporting dreams through AI-powered insights.
- AI Guru Chat: Personalized sports coaching with Gemini AI
- Posture Analysis: Real-time technique correction using MediaPipe Pose Detection
- Custom Training Plans: AI-generated workout routines tailored to individual goals
- Performance Analytics: Advanced metrics and progress tracking
- Club Discovery: Search and explore sports clubs worldwide
- Challenge System: Inter-club competitions and match scheduling
- Live Match Updates: Real-time score tracking and commentary
- Club Profiles: Comprehensive club information and statistics
- Player Profiles: Digital identity for athletes
- Social Feed: Share highlights, vlogs, and achievements
- Live Chat: Real-time communication during matches
- Notifications: Smart reminders and updates
- Sports Quizzes: Dynamic quizzes across multiple sports
- Educational Content: Tips, techniques, and strategies
- Progress Tracking: Monitor learning and skill development
- Responsive Design: Seamless experience across all devices
- Dark/Light Mode: Customizable interface themes
- Real-time Updates: Live data synchronization
- Intuitive Navigation: User-friendly interface design
- Framework: React.js 19.1.0 with Vite
- Styling: Tailwind CSS 4.1.11
- Animations: Framer Motion 11.18.2
- Icons: Lucide React 0.525.0
- Charts: Recharts 3.1.0
- AI Integration: TensorFlow.js, MediaPipe Pose Detection,gemini
- Runtime: Node.js with Express.js 5.1.0
- Database: MongoDB with Mongoose 8.16.1
- Authentication: JWT with bcrypt encryption
- File Upload: Multer with Cloudinary integration
- Real-time: Socket.io 4.8.1
- AI Services: Google Gemini API
- Frontend: Vercel (Live Demo)
- Backend: Render
- Database: MongoDB Atlas
- Media Storage: Cloudinary
- Version Control: Git
graph TB
A[React Frontend] --> B[Express.js API]
B --> C[MongoDB Database]
B --> D[Socket.io Server]
B --> E[Gemini AI API]
B --> F[Cloudinary Storage]
A --> G[MediaPipe Pose Detection]
A --> H[TensorFlow.js]
D --> I[Real-time Features]
E --> J[AI Coaching]
F --> K[Media Management]
The heart of SportsHub's innovation lies in its AI-powered coaching system:
- Multi-sport expertise covering Football, Basketball, Cricket, Tennis, and more
- Personalized advice based on user profile (age, height, weight, sport)
- Real-time responses using Google Gemini AI
- Multi-language support (English, Hindi)
- Technology: MediaPipe Pose Detection + TensorFlow.js
- Capabilities:
- Real-time pose landmark detection
- Sport-specific technique analysis
- Detailed feedback with improvement suggestions
- Performance scoring and metrics
- Supported Media: Images and videos up to 100MB
- AI-generated workout routines
- Difficulty levels: Beginner, Intermediate, Advanced
- Sport-specific focus areas
- Progress tracking and adaptation
A comprehensive platform for sports clubs and organizations:
- Club registration and approval system
- Profile customization with logos and descriptions
- Player roster management
- Match history tracking
- Inter-club challenge creation
- Match scheduling and coordination
- Live score updates by club admins
- Result tracking and statistics
- Real-time match commentary
- Live score updates
- Chat during matches
- Automated match status updates via cron jobs
- Match reminders with customizable timing
- Challenge notifications
- Live match alerts
- Achievement celebrations
- Multi-sport knowledge testing
- Difficulty-based scoring
- Leaderboards and achievements
- Educational content integration
- User profiles with sports statistics
- Content sharing (vlogs, highlights, posts)
- Community interactions
- Follow and connect with other athletes
- Node.js (v18 or higher)
- MongoDB (local or Atlas)
- Git
VITE_BACKEND_URL=http://localhost:3000
VITE_GEMINI_API_KEY=your_gemini_api_keyPORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_key
CLOUDINARY_API_SECRET=your_cloudinary_secret
GEMINI_API_KEY=your_gemini_api_key-
Clone the Repository
git clone https://github.com/Siddh-2006/BrightWebXWebWonders.git.git cd sportshub -
Backend Setup
cd SportsHub/server npm install npm start -
Frontend Setup
cd SportsHub/frontend npm install npm run dev -
Access the Application
- Frontend: http://localhost:5173
- Backend: http://localhost:3000
- Email: i24ai029@aid.svnit.ac.in
- Password: 12345
-
Neon Blaze Club
- Email: neha.patel@sportsclub.in
- Password: password
-
Royal Edge Cricket Club
- Email: imran.sheikh@collegesports.edu
- Password: password
- Create your own account for full experience
- Access
/adminroute for club approval management - Club admins can update live scores for their matches
- Challenge other clubs to schedule matches
- Use AI Guru for personalized coaching experience
SportsHub/
├── frontend/ # React.js Frontend
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Route components
│ │ ├── services/ # API service functions
│ │ ├── context/ # React context providers
│ │ ├── hooks/ # Custom React hooks
│ │ └── utils/ # Utility functions
│ ├── public/ # Static assets
│ └── package.json # Frontend dependencies
├── server/ # Node.js Backend
│ ├── controllers/ # Route controllers
│ ├── models/ # MongoDB schemas
│ ├── routes/ # API routes
│ ├── middlewares/ # Custom middleware
│ ├── config/ # Configuration files
│ ├── utils/ # Utility functions
│ ├── cron/ # Scheduled tasks
│ ├── socket/ # Socket.io handlers
│ └── package.json # Backend dependencies
└── README.md # Project documentation
POST /users/register- User registrationPOST /users/login- User loginPOST /users/logout- User logout
GET /clubs- Get all clubsPOST /clubs/register- Register new clubGET /club/:name- Get club detailsPUT /club-profile/:id- Update club profile
POST /api/ai-guru-chat- AI coaching chatPOST /api/ai-system/analyze-posture- Posture analysisPOST /api/training-plans/generate- Generate training planPOST /api/custom-training-plans/create- Create custom plan
POST /challenges/create- Create club challengeGET /challenges/my-club- Get club challengesPOST /match/create- Create matchPUT /match/:id/score- Update live score
GET /api/quiz/questions- Get quiz questionsPOST /api/quiz/submit- Submit quiz answersGET /api/quiz/leaderboard- Get leaderboard
- Primary Orange: #F97316 (Orange-500)
- Primary Red: #DC2626 (Red-600)
- Primary Blue: #3B82F6 (Blue-500)
- Success Green: #10B981 (Emerald-500)
- Warning Yellow: #F59E0B (Amber-500)
- Headings: Bold, gradient text effects
- Body: Clean, readable fonts
- Interactive: Hover effects and transitions
- Cards: Glassmorphism design with backdrop blur
- Buttons: Gradient backgrounds with hover animations
- Modals: Centered overlays with smooth transitions
- Forms: Clean inputs with focus states
- Connect GitHub repository to Vercel
- Set environment variables in Vercel dashboard
- Deploy with automatic builds on push
- Create new web service on Render
- Connect GitHub repository
- Set environment variables
- Configure build and start commands
- Create MongoDB Atlas cluster
- Configure network access
- Create database user
- Get connection string
We welcome contributions from the community! Here's how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Follow existing code style
- Add tests for new features
- Update documentation
- Ensure all tests pass
- New sports integration
- AI model improvements
- UI/UX enhancements
- Performance optimizations
- Bug fixes and testing
- User authentication and profiles
- Club management system
- AI coaching integration
- Basic match functionality
- Posture analysis with MediaPipe
- Custom training plans
- Performance analytics
- Multi-sport support
- Live chat and notifications
- Quiz system
- Social features
- Mobile responsiveness
- Mobile app development
- Advanced analytics dashboard
- Tournament management
- Marketplace for sports equipment
- Video streaming integration
- AR/VR training modules
- 🎯 AI Integration: Successfully integrated multiple AI technologies
- 📱 User Experience: Responsive design across all devices
- ⚡ Performance: Optimized for fast loading and smooth interactions
- 🔒 Security: Secure authentication and data protection
- 🌐 Scalability: Built for growth and expansion
- Team: Bright Web Team
- Project: SportsHub Platform
- Version: 1.0.0
- 📧 Email: support@sportshub.com
- 🐛 Bug Reports: Create an issue on GitHub
- 💡 Feature Requests: Submit via GitHub discussions
- 📖 Documentation: Check our comprehensive guides
- 💬 Discord: Join our developer community
- 🐦 Twitter: Follow for updates
- 📺 YouTube: Video tutorials and demos
This project is licensed under the MIT License - see the LICENSE file for details.
- ✅ Commercial use
- ✅ Modification
- ✅ Distribution
- ✅ Private use
- ❌ Liability
- ❌ Warranty
- React Team for the amazing frontend framework
- Google for Gemini AI and MediaPipe technologies
- MongoDB for the robust database solution
- Vercel & Render for seamless deployment platforms
- All contributors and maintainers
- Beta testers and early adopters
- Sports enthusiasts who provided feedback
- Sports coaches who validated our AI coaching features
- Club administrators who tested the management system
- Athletes who provided real-world usage feedback