How deepakmaharana278/gaming-website--lad works
LAD Games is a browser-based gaming platform with a React frontend and Django API. The main user journey is browsing or searching the game library, opening a game, and optionally signing in to save favorites and view play statistics. Firebase handles frontend authentication; the frontend syncs user and dashboard data with Django. The graph also preserves the documented responsive, free-to-play experience and the routed informational pages. Some backend internals and game-player behavior were not sampled, so uncertain implementation links are omitted.
Main entry points: App.jsx Route app · Login.jsx Sign in · Register.jsx Registration · googleLogin.js Google sign-in
Components 21
App navigation
- Route app
frontend/src/App.jsx - Info and policies
frontend/src/pages
Game discovery
- Home
frontend/src/pages/Home.jsx - Game library
frontend/src/pages/Games.jsx - Trending games
frontend/src/pages/Trending.jsx - Game player
frontend/src/pages/GamePlayer.jsx - Play tracking
frontend/src/utils/saveGamePlay.jsx
Identity and profile
- Sign in
frontend/src/Auth/Login.jsx - Registration
frontend/src/Auth/Register.jsx - Google sign-in
frontend/src/utils/googleLogin.js - Auth state
frontend/src/context/AuthContext.jsx - Firebase config
frontend/src/firebase.js - User sync
frontend/src/utils/saveUserToBackend.jsx - Player dashboard
frontend/src/pages/Dashboard.jsx - Favorite updates
frontend/src/utils/favoriteGame.js
Django services
- API routes
backend/gaming_app/urls.py - API handlers
backend/gaming_app/views.py - Backend settings
backend/gaming_api/settings.py
Other components
- Player
- Firebase Auth
- Django API
Connections 27
- Player → Route app: opens
frontend/src/App.jsx - Route app → Home: routes to
frontend/src/App.jsx - Route app → Sign in: routes to
frontend/src/App.jsx - Route app → Registration: routes to
frontend/src/App.jsx - Route app → Game library: routes to
frontend/src/App.jsx - Route app → Game player: routes to
frontend/src/App.jsx - Route app → Trending games: routes to
frontend/src/App.jsx - Route app → Player dashboard: routes to
frontend/src/App.jsx - Route app → Info and policies: routes to
frontend/src/App.jsx - Sign in → Firebase Auth: authenticates with
frontend/src/Auth/Login.jsx - Registration → Firebase Auth: creates account with
frontend/src/Auth/Register.jsx - Sign in → Google sign-in: invokes
frontend/src/Auth/Login.jsx - Registration → Google sign-in: invokes
frontend/src/Auth/Register.jsx - Google sign-in → Firebase Auth: signs in with
frontend/src/utils/googleLogin.js - Sign in → User sync: syncs user
frontend/src/Auth/Login.jsx - Registration → User sync: syncs user
frontend/src/Auth/Register.jsx - Google sign-in → User sync: syncs user
frontend/src/utils/googleLogin.js - User sync → Django API: posts user data
frontend/src/utils/saveUserToBackend.jsx - Auth state → Firebase Auth: observes auth
frontend/src/context/AuthContext.jsx - Game library → Favorite updates: toggles favorites
frontend/src/pages/Games.jsx - Player dashboard → Favorite updates: toggles favorites
frontend/src/pages/Dashboard.jsx - Game library → Django API: fetches stats
frontend/src/pages/Games.jsx - Player dashboard → Django API: fetches stats
frontend/src/pages/Dashboard.jsx - Game player → Play tracking: records play
- Django API → API routes: serves
- API routes → API handlers: routes to
backend/gaming_app/urls.py - Backend settings → Django API: configures