Study Duel
Study Duel is a realtime quiz platform that combines conventional API flows with websocket-driven duel state.
Architecture
- Frontend: Vue 3 with Vite, Pinia, and Vuetify
- Backend: FastAPI with SQLModel and PostgreSQL
- Realtime support: Redis plus WebSocket patterns
- Access and deployment: JWT authentication, Docker Compose, and Traefik
Why it matters in this vault
This project captures a useful extension of the standard Vue and FastAPI stack: realtime sessions, websocket auth handoff, and operational routing for mixed SPA, API, and websocket traffic.
Reusable patterns
- combine normal REST-style APIs with a dedicated websocket channel
- keep durable application state in relational storage and ephemeral coordination in Redis
- route websocket and HTTP traffic under one proxy boundary