How mushtariy0809/cs-482-black-jack works
This is a multiplayer blackjack web app with virtual chips, accounts, social features, administration and advertising. A player enters through the React app, authenticates or continues as a guest, browses or creates a table, and plays either a local practice hand or a server-run multiplayer round. The app also supports invitations, chat, history, profiles and friend messaging; administrators manage players, feedback and ads. The graph follows documented capabilities and indexed references; unsampled implementation details are not treated as verified call relationships.
Main entry points: App.jsx App orchestration · controllers REST controllers · useTables.js Realtime client · tableStore.js Live table store
Components 26
Web client
- App orchestration
src/App.jsx - Account screens
src/screens/AuthScreen.jsx - Backend URL
src/apiUrl.js - Lobby and tables
src/lobby - Table details
src/lobby/tableInfo.jsx - Invitations
src/invite/inviteLink.js - Realtime client
src/realtime/useTables.js - Sound manager
src/sound/SoundManager.js
Gameplay
- Practice game
src/blackjack.js - Multiplayer table UI
src/table/MultiplayerGame.jsx - Shared game rules
shared/rules.js
Player services
- Game history screen
src/screens/HistoryScreen.jsx - Friends and messages
src/screens/FriendsScreen.jsx
Backend services
- REST controllers
backend/controllers - Player records
backend/models/Player.js - Live table store
backend/realtime/tableStore.js - Round engine
backend/realtime/round.js - Socket handlers
backend/realtime/socket.js - MongoDB
Ads and administration
- Admin dashboard
src/admin/AdminDashboard.jsx - Ad revenue tools
src/admin/AdRevenue.jsx - Video ad flow
src/ads/useVideoAds.js - Shared ad policy
shared/ads.js - Ad runtime
backend/realtime/adStore.js
Other components
- Player
- Administrator
Connections 29
- Player → App orchestration: uses
README.md - Administrator → Admin dashboard: manages
README.md - App orchestration → Account screens: shows
src/App.jsx - App orchestration → Lobby and tables: shows
src/App.jsx - App orchestration → Practice game: starts
src/App.jsx - App orchestration → Multiplayer table UI: shows
src/App.jsx - App orchestration → Admin dashboard: shows
src/App.jsx - Lobby and tables → Table details: uses
src/lobby/CreateTable.jsx - App orchestration → Invitations: reads
src/App.jsx - Multiplayer table UI → Realtime client: uses
src/table/MultiplayerGame.jsx - Realtime client → Backend URL: configures
src/realtime/useTables.js - Realtime client → Socket handlers: exchanges events
README.md - Socket handlers → Live table store: handles tables
backend/realtime/index.js - Live table store → Round engine: uses
backend/realtime/tableStore.js - Live table store → MongoDB: persists
- REST controllers → Player records: reads and writes
backend/controllers/adminController.js - REST controllers → MongoDB: persists records
- Account screens → REST controllers: uses API
src/screens/AuthScreen.jsx - Friends and messages → REST controllers: uses API
- Game history screen → REST controllers: loads history
src/screens/HistoryScreen.jsx - Practice game → Shared game rules: uses rules
README.md - Round engine → Shared game rules: uses rules
README.md - Admin dashboard → Ad revenue tools: shows
src/admin/AdminDashboard.jsx - Ad revenue tools → Shared ad policy: uses definitions
src/admin/AdRevenue.jsx - Video ad flow → Realtime client: requests ads
src/ads/useVideoAds.js - Video ad flow → Shared ad policy: finds ads
src/ads/useVideoAds.js - Socket handlers → Ad runtime: handles ad events
backend/realtime/index.js - Ad runtime → Shared ad policy: uses limits
shared/ads.js - App orchestration → Sound manager: provides sound
src/App.jsx