How prince-mitra/durga_puja_2026 works
Party Play is a live, audience-participation game platform: administrators create and publish media, quiz, and poll cards, then run them live; players join anonymously, respond, and view results. The React client provides public play and protected administration, while the Express API validates requests and coordinates game, live-session, and response services. MongoDB stores game and response state, and Socket.IO broadcasts updates. The README is empty, so product capabilities are inferred from the source index and sampled code; several client-to-API links remain unverified.
Main entry points: gameService.js Game and response logic · App.jsx Client router · liveService.js Live queue control · adminGameController.js Game administration
Components 25
Player experience
- Client router
client/src/App.jsx - Play and results
client/src/pages - Player session
client/src/context/PlayerContext.jsx - API client
client/src/services/api.js - Live updates
client/src/hooks/useSocket.js
Admin experience
- Admin console
client/src/pages/admin - Admin session
client/src/context/AuthContext.jsx - Admin API service
client/src/services/adminService.js
API and access
- HTTP application
server/app.js - Public routes
server/routes/publicRoutes.js - Admin routes
server/routes/adminRoutes.js - Authentication routes
server/routes/authRoutes.js - Public game API
server/controllers/publicGameController.js - Game administration
server/controllers/adminGameController.js - Admin authentication
server/controllers/authController.js
Game domain
- Game and response logic
server/services/gameService.js - Live queue control
server/services/liveService.js - Anonymous player tokens
server/services/playerService.js
Persistence and realtime
- Game records
server/models/Game.js - Player responses
server/models/Response.js - Live state
server/models/LiveState.js - Socket broadcasts
server/services/socketService.js - Media storage
server/services/storage/index.js
Other components
- Player
- Administrator
Connections 31
- Player → Client router: uses
client/src/App.jsx - Client router → Play and results: routes to
client/src/App.jsx - Client router → Player session: provides session
client/src/App.jsx - Client router → Admin console: routes to
client/src/App.jsx - Client router → Admin session: provides session
client/src/App.jsx - Administrator → Admin console: uses
- Play and results → API client: requests data
- Player session → API client: requests session
client/src/context/PlayerContext.jsx - Play and results → Live updates: subscribes
- Admin console → Admin API service: requests admin data
- Admin API service → API client: uses
client/src/services/adminService.js - HTTP application → Public routes: mounts
server/app.js - HTTP application → Admin routes: mounts
server/app.js - HTTP application → Authentication routes: mounts
server/app.js - Public routes → Public game API: routes requests
server/routes/publicRoutes.js - Admin routes → Game administration: routes requests
server/routes/adminRoutes.js - Authentication routes → Admin authentication: routes requests
server/routes/authRoutes.js - Public game API → Game and response logic: delegates game logic
server/controllers/publicGameController.js - Game administration → Game and response logic: delegates game logic
server/controllers/adminGameController.js - Game administration → Live queue control: controls live state
server/controllers/adminGameController.js - Game administration → Media storage: checks and removes media
server/controllers/adminGameController.js - Game and response logic → Game records: reads and updates
server/services/gameService.js - Game and response logic → Player responses: stores and aggregates
server/services/gameService.js - Live queue control → Game records: queries games
server/services/liveService.js - Live queue control → Live state: reads and writes
server/services/liveService.js - Live queue control → Game and response logic: prepares questions
server/services/liveService.js - Game and response logic → Socket broadcasts: broadcasts updates
server/services/gameService.js - Live queue control → Socket broadcasts: broadcasts live changes
server/services/liveService.js - Admin authentication → Anonymous player tokens: issues player token
- API client → HTTP application: sends API requests
- Live updates → Socket broadcasts: receives events