How bronkoknorb/type-draw-type-game works
Main Components
a) Frontend (React Application)
• User Interface Components
• WebSocket Client
• State Management
• Drawing Tools
• Game Flow Controllers
b) Backend (Spring Boot Server)
• WebSocket Server
• Game Management
• Player State Machine
• Storage System
• REST API Endpoints
c) Persistence Layer
• File System Storage (~/tdt-data)
Component Relationships and Architecture
[Client Layer]
• ↕️ WebSocket/HTTP
[Server Layer]
• ↕️ File I/O
[Storage Layer]
Detailed Component Breakdown
Frontend Components (tdt-webapp):
• WebSocket Client Connection
• Game State Management
• Drawing Canvas System
• Player Management Interface
Backend Components (tdt-server):
• WebSocket Handler
• Game Manager
• Player State Machine
• Game Rounds Generator
• Story Management
Storage:
Interaction Flows
• WebSocket communication between frontend and backend
• Game state updates
• Player actions flow
• Data persistence operations
Technical Stack Indicators
Technology labels:
• React/TypeScript (Frontend)
• Spring Boot (Backend)
• WebSocket Protocol
• Docker Container
• File System Storage
Additional Elements
• Notes about scaling considerations
• Development vs production paths
• Version/build process flow
Specific Implementation Details
• The game's turn-based nature
• Real-time updates via WebSocket
• Player state transitions
• Story chain progression
• Drawing/typing round alternation
Deployment Context
Docker container boundary and how it encapsulates both frontend and backend components, with exposed port 8080 mapped to host port 8081.