316 lines
8.3 KiB
Markdown
316 lines
8.3 KiB
Markdown
# Trivia Game Web App
|
||
|
||
A real-time trivia game application with Flask backend and React frontend, featuring WebSocket support for live score updates and question displays.
|
||
|
||
## Features
|
||
|
||
- **Question Bank Management**: Create and manage text and image-based trivia questions
|
||
- **Game Setup**: Create games with selected questions and teams
|
||
- **Contestant View**: Full-screen TV display showing current question and live scoreboard
|
||
- **Admin Control Panel**: Control game flow, navigate questions, and award points
|
||
- **Real-time Updates**: WebSocket-powered instant updates across all views
|
||
- **Multiple Game Support**: Database supports multiple games with independent question sets
|
||
|
||
## Architecture
|
||
|
||
- **Backend**: Flask + Flask-SocketIO + SQLAlchemy + SQLite
|
||
- **Frontend**: React + React Router + Socket.IO Client + Axios
|
||
- **Real-time**: WebSocket with room-based architecture (contestant/admin rooms)
|
||
- **Dev Setup**: Separate dev servers with Vite proxy
|
||
- **Production**: React builds to Flask static folder for single deployment unit
|
||
|
||
## Project Structure
|
||
|
||
```
|
||
trivia-thang/
|
||
|