How govind516/quiz-app works
HexQuiz is an interview-prep quiz platform with solo practice, multiplayer rooms, rankings, profiles, and an administrative console. The main player journey is sign-in or guest entry, choose a practice quiz, play and submit an attempt, then view results and profile progress. The frontend is a Next.js application backed by a Spring Boot API; its API client attaches and refreshes auth tokens, while attempt and result payloads can be cached in browser storage. Live-room transport details and backend internals are not present in the supplied tree, so those connections are documented at product level only.
Main entry points: api.ts API client · [id]/page.tsx Quiz attempt · app/page.tsx Home · [id]/page.tsx Attempt results
Components 16
Player experience
- Home
frontend/app/page.tsx - Sign in
frontend/app/login/page.tsx - Practice catalog
frontend/app/practice/page.tsx - Quiz attempt
frontend/app/play/[id]/page.tsx - Attempt results
frontend/app/results/[id]/page.tsx - Profile progress
frontend/app/profile/page.tsx
Session and API
- Auth state
frontend/lib/auth-store.ts - API client
frontend/lib/api.ts - API configuration
frontend/lib/config.ts - Attempt cache
frontend/lib/guest-session.ts - Result cache
frontend/lib/result-cache.ts
Live and rankings
- Live rooms
frontend/app/live - Leaderboard
frontend/app/leaderboard/page.tsx
Administration
- Admin console
frontend/app/admin
Other components
- Player
- Spring Boot API
Connections 20
- Player → Home: opens
README.md - Home → Practice catalog: links to
frontend/app/page.tsx - Home → Leaderboard: links to
frontend/app/page.tsx - Player → Sign in: signs in
README.md - Sign in → Auth state: establishes session
- Practice catalog → API client: requests quizzes
- Quiz attempt → API client: submits attempt
- API client → Spring Boot API: sends requests
frontend/lib/api.ts - API client → API configuration: uses base URL
frontend/lib/api.ts - API client → Auth state: reads tokens
frontend/lib/api.ts - Quiz attempt → Attempt cache: stores start payload
- Quiz attempt → Attempt results: shows completed attempt
README.md - Attempt results → Result cache: caches result
- Attempt results → Profile progress: continues to progress
README.md - Profile progress → API client: loads stats
frontend/app/profile/page.tsx - Leaderboard → API client: loads rankings
frontend/app/leaderboard/page.tsx - Player → Live rooms: joins room
README.md - Live rooms → Spring Boot API: exchanges room updates
- Admin console → API client: loads admin data
frontend/app/admin/page.tsx - Admin console → Spring Boot API: manages quiz content
README.md