How esnogitaccount/avanceradfullstack_grupparbete_tss works
This repository implements a city-guessing game: players use the web app to play daily or themed challenges, submit results, and view leaderboards and achievements. The backend exposes game, city-content, account, profile, and administration APIs, with persistence and image storage behind services. The graph preserves those documented product areas, but several frontend-to-API and backend service links are not shown in the available excerpts; those connections are omitted or marked unverified rather than inferred as confirmed calls.
Main entry points: App.tsx Route shell · WhereAreWeDbContext.cs Game database · AuthService.cs Authentication · CityService.cs City content management
Components 23
Web experience
- Route shell
frontend/src/App.tsx - Game page
frontend/src/pages/game-page/gamePage.tsx - Leaderboard page
frontend/src/pages/leaderboard-page/LeaderboardPage.tsx - Profile page
frontend/src/pages/profile-page/ProfilePage.tsx - Admin page
frontend/src/pages/admin-page/AdminPage.tsx - Game interaction
frontend/src/components/game-components/game/game.tsx
Gameplay and content
- Daily challenges
backend/Services/DailyChallengeService.cs - City content management
backend/Services/CityService.cs - City endpoints
backend/Controllers/CitiesController.cs - Game endpoints
backend/Controllers/GamesController.cs - Game results
backend/Services/GameService.cs
Accounts and results
- Authentication endpoints
backend/Controllers/AuthController.cs - Authentication
backend/Services/AuthService.cs - Profile endpoints
backend/Controllers/ProfileController.cs - Leaderboard service
backend/Services/LeaderboardService.cs - Achievements
backend/Services/AchievementService.cs
Persistence and media
- Game database
backend/Data/WhereAreWeDbContext.cs - City repository
backend/Repositories/CityRepository.cs - Refresh-token repository
backend/Repositories/RefreshTokenRepository.cs - Registration repository
backend/Repositories/RegistrationRepository.cs - Image blob storage
backend/Services/BlobStorageService.cs
Other components
- Player
- Azure Blob Storage
Connections 20
- Player → Route shell: uses
- Route shell → Game page: routes to
frontend/src/App.tsx - Route shell → Leaderboard page: routes to
frontend/src/App.tsx - Route shell → Profile page: routes to
frontend/src/App.tsx - Route shell → Admin page: routes to
frontend/src/App.tsx - Game page → Game interaction: renders
- Player → Game endpoints: submits play
- Game endpoints → Game results: delegates to
backend/Controllers/GamesController.cs - City endpoints → City content management: delegates to
backend/Controllers/CitiesController.cs - City content management → City repository: uses
backend/Services/CityService.cs - City content management → Image blob storage: manages images
backend/Services/CityService.cs - Authentication endpoints → Authentication: delegates to
backend/Controllers/AuthController.cs - Authentication → Refresh-token repository: reads and writes
backend/Services/AuthService.cs - Authentication → Registration repository: registers through
backend/Services/AuthService.cs - Authentication → Game database: reads users
- City repository → Game database: queries cities
backend/Repositories/CityRepository.cs - Refresh-token repository → Game database: stores tokens
backend/Repositories/RefreshTokenRepository.cs - Registration repository → Game database: creates accounts
backend/Repositories/RegistrationRepository.cs - Game database → Image blob storage: stores blob names
- Image blob storage → Azure Blob Storage: uploads and downloads
backend/Services/BlobStorageService.cs