A comprehensive gaming duel platform built with Django REST Framework (backend) and React (frontend). Users can create gaming duels, participate in tournaments, manage their wallet, and complete KYC verification.
PlayInBet is a competitive gaming platform where users can:
- Create and participate in gaming duels across 25+ game modes
- Complete KYC verification for enhanced features
- Manage tickets and wallet transactions
- Participate in tournaments and view leaderboards
- Admin panel for platform management
- Django 5.1.6 - Web framework
- Django REST Framework - API development
- Djoser - Authentication system
- SQLite/PostgreSQL - Database
- Python 3.11+ - Programming language
- React 18 - UI framework
- React Router v6 - Navigation
- Bootstrap 5 - UI components
- Axios - HTTP client
- Context API - State management
playinbet/
├── 🐍 BACKEND (Django)
│ ├── core/ # Main app
│ │ ├── models.py # Database models
│ │ ├── views.py # API views
│ │ ├── serializers.py # API serializers
│ │ └── urls.py # API routes
│ ├── playinbet_backend/ # Django settings
│ ├── manage.py # Django management
│ ├── db.sqlite3 # Database file
│ └── venv/ # Python virtual environment
│
└── ⚛️ FRONTEND (React)
└── playinbet-frontend/
├── src/
│ ├── components/ # Reusable components
│ │ ├── Sidebar.js # Main navigation
│ │ ├── LoginForm.js # Authentication
│ │ ├── CreateDuelForm.js # Duel creation
│ │ └── KYCVerificationModal.js
│ ├── pages/ # Main pages
│ │ ├── Home.js # Landing page
│ │ ├── Matches.js # Duels management
│ │ ├── DuelRoom.js # Active duel interface
│ │ ├── Tournaments.js # Tournament system
│ │ ├── Wallet.js # Financial management
│ │ ├── Profile.js # User profile
│ │ └── admin/ # Admin pages
│ ├── context/ # React contexts
│ │ ├── AuthContext.js # Authentication state
│ │ └── NotificationContext.js
│ ├── hooks/ # Custom hooks
│ │ ├── useKYC.js # KYC verification
│ │ └── useDuelRedirect.js
│ └── api/ # API configuration
│ └── axios.js # HTTP client setup
├── public/ # Static assets
└── package.json # Dependencies
- Python 3.11+
- Node.js 18+
- npm or yarn
git clone <repository-url>
cd playinbet# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activatepip install -r requirements.txtpython manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser # Create admin userpython manage.py runserver 8001Backend will be available at: http://localhost:8001
cd playinbet-frontendnpm installnpm startFrontend will be available at: http://localhost:3000
POST /auth/token/login/- User loginPOST /auth/token/logout/- User logoutPOST /auth/users/- User registrationGET /auth/users/me/- Current user info
GET/POST /api/duels/- Duel managementGET/POST /api/tournaments/- Tournament systemGET/POST /api/kyc/- KYC verificationGET/POST /api/withdrawals/- Wallet managementGET /api/admin/- Admin endpoints
- 25+ Game Modes: Fortnite, Call of Duty, FIFA, etc.
- Real-time Duel Creation: Instant matchmaking
- Proof Upload System: Screenshot validation
- AI Validation: Automated result verification
- Dispute Resolution: Admin-managed conflicts
- Identity Verification: Document upload
- Enhanced Security: Required for transactions
- Status Tracking: Real-time verification updates
- Admin Review: Manual verification process
- Ticket System: Virtual currency
- Secure Transactions: Bank integration
- Withdrawal System: IBAN-based payouts
- Transaction History: Complete audit trail
- Multi-format Tournaments: Various competition types
- Leaderboards: Real-time rankings
- Prize Distribution: Automated rewards
- Bracket Management: Tournament progression
- User Management: Account administration
- Duel Oversight: Match supervision
- Financial Control: Transaction monitoring
- Platform Settings: System configuration
- Uses Django's token authentication
- Secure API endpoints
- Session management
- Role-based access control
- Document verification
- Identity validation
- Enhanced security features
- Regulatory compliance
- Glass Morphism: Modern dark theme
- Responsive Design: Mobile-first approach
- Bootstrap 5: Consistent components
- Interactive Elements: Smooth animations
- Real-time Notifications: Instant feedback
- Progressive Loading: Optimized performance
- Intuitive Navigation: User-friendly interface
- Error Handling: Graceful error management
- Minor UI inconsistencies in mobile view
- Notification timing optimization needed
- Image upload validation enhancement
- Real-time updates frequency adjustment
- WebSocket integration for real-time features
- Enhanced caching for better performance
- Advanced filtering in admin panels
- Automated testing implementation
- User: Extended Django user model
- Duel: Gaming match entity
- Tournament: Competition structure
- KYCVerification: Identity validation
- Withdrawal: Financial transactions
- Notification: System messaging
- Switch to PostgreSQL for production
- Configure environment variables
- Set up static file serving
- Enable HTTPS and security headers
- Configure email backend
DEBUG=False
SECRET_KEY=your-secret-key
DATABASE_URL=postgresql://...
ALLOWED_HOSTS=yourdomain.com- Clean, modular architecture
- Consistent naming conventions
- Proper error handling
- Comprehensive comments
- Use TypeScript for enhanced development
- Implement proper testing
- Follow React/Django conventions
- Maintain security standards
- Follow existing code patterns
- Write clear commit messages
- Test thoroughly before deployment
- Update documentation as needed
For technical issues or questions:
- Review the codebase structure
- Check API endpoint documentation
- Test in development environment
- Monitor console/server logs
Project Status: ✅ Fully Functional
Last Updated: August 2025
Ready for: Bug fixes and feature enhancements