How maxencepzt/treasurely-back works
Treasurely is a Symfony backend serving a player JSON-LD API, a designer-facing web surface, and an admin back office. The main player journey is to form or join a team, find and join an open hunt, reveal ordered riddles, submit answers, and receive a score and ranking. The README documents the domain stages and assigns gameplay operations to state processors and scoring/editor logic to services; source excerpts additionally show concrete processor, entity, and upload relationships. Some subsystems are documented but unsampled, so those links cite the README.
Main entry points: ParticipateHunt.php Hunt participation · SolveRiddleProcessor.php Answer processing · TreasureHunt.php Player API · DesignerHuntController.php Designer facade
Components 22
Application surfaces
- Player API
src/Entity/TreasureHunt.php - Designer facade
src/Controller/Design/DesignerHuntController.php - Admin back office
src/Controller/Admin/DashboardController.php
Teams and identity
- User accounts
src/Entity/User.php - Player teams
src/Entity/Team.php - Team membership
src/State/JoinTeamProcessor.php
Hunt design
- Designer teams
src/Entity/DesignerTeam.php - Hunt editor
src/Service/Designer/HuntEditor.php - Hunts and riddles
src/Entity/TreasureHunt.php
Gameplay and results
- Hunt participation
src/Entity/ParticipateHunt.php - Riddle delivery
src/State/RiddleProvider.php - Answer processing
src/State/SolveRiddleProcessor.php - Riddle attempts
src/Entity/ParticipateRiddle.php - Score calculation
src/Service/ScoreCalculator.php - Scoreboard
src/State/ScoreboardProvider.php - Player statistics
src/Controller/User/GetUserStatsController.php
Shared services
- Image uploads
src/Service/ImageUploadService.php - Picture records
src/Entity/Picture.php - SSO exchange
src/Controller/SSOController.php
Other components
- Players
- Hunt designers
- Administrators
Connections 26
- Players → Player API: use
README.md - Hunt designers → Designer facade: design hunts
README.md - Administrators → Admin back office: manage records
README.md - Players → SSO exchange: exchange token
README.md - SSO exchange → User accounts: find account
src/Controller/SSOController.php - Player API → User accounts: authenticate users
src/Entity/TreasureHunt.php - Players → Player teams: create or join
README.md - Player teams → Team membership: process membership
src/Entity/Team.php - Hunt designers → Designer teams: organize designers
README.md - Designer facade → Hunt editor: save changes
src/Controller/Design/DesignerHuntController.php - Hunt editor → Hunts and riddles: build hunts
src/Service/Designer/HuntEditor.php - Hunts and riddles → Designer teams: associate team
src/Entity/TreasureHunt.php - Players → Hunt participation: join hunt
src/Entity/ParticipateHunt.php - Player API → Hunt participation: dispatch join
src/Entity/ParticipateHunt.php - Hunt participation → Riddle delivery: advance riddles
src/Entity/ParticipateHunt.php - Players → Riddle delivery: open riddle
README.md - Riddle delivery → Answer processing: submit attempt
- Players → Answer processing: answer riddle
README.md - Answer processing → Score calculation: calculate score
src/State/SolveRiddleProcessor.php - Answer processing → Riddle attempts: record attempt
src/State/SolveRiddleProcessor.php - Players → Scoreboard: view ranking
README.md - Hunt participation → Scoreboard: rank finishers
src/Entity/ParticipateHunt.php - Players → Player statistics: view statistics
README.md - Player statistics → User accounts: read aggregates
src/Controller/User/GetUserStatsController.php - Designer facade → Image uploads: upload images
- Image uploads → Picture records: persist image
src/Service/ImageUploadService.php