How kennypark-167/reddot-python-desktop works
REDDOT is a desktop, single-room chat client backed by a FastAPI service and SQL database. Users register or sign in, then send messages and receive updates through five-second polling; administrators can inspect and delete users and messages. The README also describes JWT authentication, timestamped history, and a dark-mode interface. The sampled client and server code supports the main HTTP, chat, and administration flows; database schema details and some client behavior are not shown, so those links rely on documented relationships.
Main entry points: main.py HTTP API and routes · schema.sql SQL database · app.py Sign-in and registration
Components 9
Desktop client
- Sign-in and registration
client/app.py - Chat room and polling
client/app.py - Admin console
client/app.py
Chat service
- HTTP API and routes
server/main.py - JWT and access control
server/main.py - Message handling
server/main.py - Admin operations
server/main.py
SQL storage
- SQL database
db/schema.sql
Other components
- Chat user
Connections 12
- Chat user → Sign-in and registration: registers or signs in
README.md - Chat user → Chat room and polling: chats
README.md - Chat user → Admin console: administers
README.md - Sign-in and registration → HTTP API and routes: sends auth requests
client/app.py - Chat room and polling → HTTP API and routes: sends and polls
client/app.py - Admin console → HTTP API and routes: requests admin data
client/app.py - HTTP API and routes → JWT and access control: validates protected routes
server/main.py - HTTP API and routes → Message handling: handles message routes
server/main.py - HTTP API and routes → Admin operations: handles admin routes
server/main.py - JWT and access control → SQL database: reads users
server/main.py - Message handling → SQL database: stores and reads messages
server/main.py - Admin operations → SQL database: manages records
server/main.py