How veerababu-spf/one-one-chat works
This is a small FastAPI chat backend. A user connects over WebSocket, submits a message, and the server persists it before forwarding it to a connected recipient; users can also request ordered conversation history over HTTP. The sampled server implements persistence and message delivery directly, while separate database/model modules define a MySQL-oriented setup that is not shown wired into the server. The README is empty, so unsampled capabilities and integrations cannot be established.
Main entry points: main.py WebSocket messaging · chat.db SQLite chat store · database.py MySQL setup · models.py Message model
Components 9
Chat runtime
- FastAPI server
python-backend/main.py - WebSocket messaging
python-backend/main.py - Connection registry
python-backend/main.py - Conversation history
python-backend/main.py
Persistence
- SQLite chat store
python-backend/chat.db - MySQL setup
python-backend/database.py - Message model
python-backend/models.py
Data contracts
- Message schemas
python-backend/schemas.py
Other components
- Chat user
Connections 9
- Chat user → WebSocket messaging: connects and sends
python-backend/main.py - WebSocket messaging → Connection registry: registers connection
python-backend/main.py - WebSocket messaging → SQLite chat store: writes message
python-backend/main.py - WebSocket messaging → Connection registry: looks up recipient
python-backend/main.py - WebSocket messaging → Chat user: forwards message
python-backend/main.py - Chat user → Conversation history: requests history
python-backend/main.py - Conversation history → SQLite chat store: queries messages
python-backend/main.py - FastAPI server → SQLite chat store: creates tables
python-backend/main.py - MySQL setup → Message model: uses Base metadata
python-backend/database.py