How design2k27/garame-app works
Garame is a browser-based multiplayer card-game product with a Symfony API. Players authenticate, enter the dashboard or lobby, join or create a match, play rounds in a game room, and view game outcomes; the API handles matchmaking, game rules, state payloads, and account-related features. The graph preserves the distinct wallet, profile, ranking, home-status, and live-update capabilities visible in the source inventory. Some of those implementations were not excerpted, so their internal relationships are left unasserted.
Main entry points: GameApplicationService.php Game application · routes.tsx Page routing · GameController.php Game API · client.ts HTTP client
Components 30
Web application
- Page routing
garame-web/src/app/routes.tsx - Auth context
garame-web/src/app/auth/AuthContext.tsx - Sign in and register
garame-web/src/app/pages/AuthPage.tsx - Dashboard
garame-web/src/app/pages/Dashboard.tsx - Match lobby
garame-web/src/app/pages/Lobby.tsx - Game room
garame-web/src/app/pages/GameRoom.tsx - Wallet
garame-web/src/app/pages/Wallet.tsx - HTTP client
garame-web/src/app/api/client.ts - API operations
garame-web/src/app/api/garameApi.ts
API workflows
- Authentication API
garame-api/src/Controller/AuthController.php - Game API
garame-api/src/Controller/GameController.php - Move API
garame-api/src/Controller/MoveController.php - Home status API
garame-api/src/Controller/HomeController.php - Profile API
garame-api/src/Controller/ProfileController.php - Ranking API
garame-api/src/Controller/RankingController.php - Home status
garame-api/src/Service/HomeStatusService.php - Profile statistics
garame-api/src/Service/ProfileStatsService.php
Game domain
- Game application
garame-api/src/Service/GameApplicationService.php - Move application
garame-api/src/Service/MoveApplicationService.php - Rules engine
garame-api/src/Service/GameEngine.php - Card deck
garame-api/src/Service/CardDeckService.php - Game payloads
garame-api/src/Service/GamePayloadBuilder.php - Live publishing
garame-api/src/Service/MercurePublisher.php
Persistence and accounts
- User record
garame-api/src/Entity/User.php - Game state records
garame-api/src/Entity - User repository
garame-api/src/Repository/UserRepository.php - Game repository
garame-api/src/Repository/GameRepository.php - Game-player repository
garame-api/src/Repository/GamePlayerRepository.php - Doctrine database
Other components
- Player
Connections 33
- Page routing → Sign in and register: routes to
garame-web/src/app/routes.tsx - Page routing → Dashboard: routes to
garame-web/src/app/routes.tsx - Page routing → Match lobby: routes to
garame-web/src/app/routes.tsx - Page routing → Game room: routes to
garame-web/src/app/routes.tsx - Page routing → Wallet: routes to
garame-web/src/app/routes.tsx - Auth context → API operations: requests auth
garame-web/src/app/auth/AuthContext.tsx - Sign in and register → Auth context: uses context
garame-web/src/app/pages/AuthPage.tsx - API operations → HTTP client: sends requests
garame-web/src/app/api/garameApi.ts - Game room → HTTP client: sends requests
garame-web/src/app/pages/GameRoom.tsx - Game room → API operations: uses operations
garame-web/src/app/pages/GameRoom.tsx - Player → Page routing: opens application
- HTTP client → Game API: HTTP API
- HTTP client → Authentication API: HTTP API
- Authentication API → User repository: uses repository
garame-api/src/Controller/AuthController.php - Authentication API → User record: uses user
garame-api/src/Controller/AuthController.php - Game API → Game application: delegates games
garame-api/src/Controller/GameController.php - Game API → Game payloads: builds responses
garame-api/src/Controller/GameController.php - Move API → Move application: delegates moves
garame-api/src/Controller/MoveController.php - Move API → Game payloads: builds responses
garame-api/src/Controller/MoveController.php - Home status API → Home status: gets status
garame-api/src/Controller/HomeController.php - Game application → Rules engine: uses rules
garame-api/src/Service/GameApplicationService.php - Game application → Game repository: queries games
garame-api/src/Service/GameApplicationService.php - Game application → Game-player repository: queries players
garame-api/src/Service/GameApplicationService.php - Game application → User repository: queries users
garame-api/src/Service/GameApplicationService.php - Game application → Live publishing: publishes updates
garame-api/src/Service/GameApplicationService.php - Rules engine → Card deck: uses deck
garame-api/src/Service/GameEngine.php - Rules engine → Game-player repository: queries players
garame-api/src/Service/GameEngine.php - Game API → Game state records: serializes game
garame-api/src/Controller/GameController.php - User repository → User record: loads users
garame-api/src/Repository/UserRepository.php - Game repository → Game state records: loads games
garame-api/src/Repository/GameRepository.php - Game-player repository → Game state records: loads players
garame-api/src/Repository/GamePlayerRepository.php - Profile API → Profile statistics: uses statistics
- Game state records → Doctrine database: persisted by Doctrine