How wb873/se-poker-project works
SE-Poker-Project is a web app for Caribbean Stud Poker, with both standalone games and multiplayer lobbies. Players enter through the client, sign in or play as guests, then browse or create a lobby and play at a table; the server handles game state and real-time table events. Separate capabilities cover accounts, friends and chat, balances, leaderboards, contact, ads, and administration. The source index supports key module references, but several client pages and server controllers were not excerpted, so some feature-level wiring is omitted.
Main entry points: server.js HTTP and sockets · LeaderboardController.js Leaderboard services · App.jsx App and routes · game_routes.js Game endpoints
Components 25
Web client
- App and routes
client/src/App.jsx - Session state
client/src/session.jsx - Table interface
client/src/components/game_table_view.jsx - API configuration
client/src/api_config.js
Game runtime
- HTTP and sockets
server.js - Game endpoints
routes/game_routes.js - Solo game rules
game.js - Lobby endpoints
routes/lobby_routes.js - Lobby management
controller/LobbyController.js - Live table coordination
controller/TableController.js - Multiplayer table engine
tableGame.js - Bot strategy
botStrategy.js - Lobby records
model/LobbyDao.js
Accounts and social
- Account endpoints
routes/user_routes.js - Account management
controller/UserController.js - Session authentication
util/AuthSession.js - Player accounts
model/UserDao.js - Friends and messaging
controller - Contact requests
controller/ContactController.js - Ad rewards
controller/AdController.js
Rankings and admin
- Leaderboard services
controller/LeaderboardController.js - Leaderboard data
model/LeaderboardDao.js - Player statistics
model/PlayerStatsDao.js - Admin capabilities
controller/AdminController.js
Other components
- Player
Connections 28
- Player → App and routes: uses
client/src/App.jsx - App and routes → Session state: reads
client/src/App.jsx - App and routes → Table interface: routes to
- Session state → API configuration: uses
client/src/session.jsx - API configuration → HTTP and sockets: targets
- HTTP and sockets → Game endpoints: mounts
server.js - HTTP and sockets → Lobby endpoints: mounts
server.js - HTTP and sockets → Account endpoints: mounts
server.js - HTTP and sockets → Live table coordination: registers sockets
server.js - Game endpoints → Solo game rules: calls
routes/game_routes.js - Game endpoints → Leaderboard services: records hand
routes/game_routes.js - Lobby endpoints → Lobby management: dispatches
routes/lobby_routes.js - Lobby management → Lobby records: reads and writes
controller/LobbyController.js - Live table coordination → Multiplayer table engine: coordinates
controller/TableController.js - Live table coordination → Lobby records: reads and writes
controller/TableController.js - Multiplayer table engine → Solo game rules: uses rules
tableGame.js - Multiplayer table engine → Bot strategy: uses strategy
tableGame.js - Account endpoints → Account management: dispatches
routes/user_routes.js - Account endpoints → Session authentication: guards routes
routes/user_routes.js - Account management → Player accounts: reads and writes
controller/UserController.js - Session authentication → Player accounts: looks up user
util/AuthSession.js - Leaderboard services → Leaderboard data: records and reads
controller/LeaderboardController.js - Leaderboard services → Player statistics: records hands
controller/LeaderboardController.js - Leaderboard services → Player accounts: via player stats
- HTTP and sockets → Friends and messaging: registers handlers
server.js - HTTP and sockets → Contact requests: mounts routes
server.js - HTTP and sockets → Admin capabilities: mounts routes
server.js - HTTP and sockets → Ad rewards: mounts routes
server.js