How kokokoder/buzzer works
This Laravel app supports quiz hosts who register, create a room, and share its key with players; players join and use a single buzzer, while the host manages scores and sees the fastest team. The graph separates account access, room setup and joining, live play, and the host’s results view. Controller-to-model calls are evidenced by excerpts; several live-play and host-panel details are documented in the README but their implementation was not sampled, so those links cite the README rather than implying inspected code.
Main entry points: BuzzerController.php Room and buzzer actions · LoginController.php Account access · web.php Web request routes · RegisterController.php User registration
Components 16
Accounts
- Account access
app/Http/Controllers/Auth/LoginController.php - User registration
app/Http/Controllers/Auth/RegisterController.php - User account
app/User.php
Room setup
- Room and buzzer actions
app/Http/Controllers/BuzzerController.php - Game room
app/Game.php - Room membership
app/joinGameRoom.php - Create room view
resources/views/creategame.blade.php - Join room view
resources/views/joingame.blade.php
Live play
- Team buzzer view
resources/views/teamscreen.blade.php - First-buzz state
app/Http/Controllers/BuzzerController.php
Host results
- Host game panel
resources/views/hostview.blade.php - Score management
resources/views/hostview.blade.php - Fastest team display
resources/views/hostview.blade.php
Other components
- Players and host
- Web request routes
routes/web.php - Facebook login
Connections 18
- Players and host → Account access: sign in
- Players and host → User registration: register
- User registration → User account: creates account
app/Http/Controllers/Auth/RegisterController.php - Account access → Facebook login: optional login
- Web request routes → Room and buzzer actions: routes requests
routes/web.php - Web request routes → Account access: routes requests
- Players and host → Create room view: create room
- Create room view → Room and buzzer actions: submits room
- Room and buzzer actions → Game room: saves room
app/Http/Controllers/BuzzerController.php - Players and host → Join room view: enter room key
- Join room view → Room and buzzer actions: submits join
- Room and buzzer actions → Room membership: saves membership
app/Http/Controllers/BuzzerController.php - Room and buzzer actions → Game room: reads rooms
app/Http/Controllers/BuzzerController.php - Players and host → Team buzzer view: press buzzer
- Team buzzer view → First-buzz state: sends buzz
- First-buzz state → Fastest team display: displays winner
- Players and host → Host game panel: manage game
- Host game panel → Score management: manages scores