How tensai22/whispr_backend works
Whispr is a Django messaging and social-chat backend. The main user journey is account registration or login, then profile and user discovery, followed by real-time global chat over WebSockets; authenticated API endpoints also expose groups and communities. The chat consumer persists incoming messages and broadcasts them to connected clients through the configured channel layer. The graph includes the account, chat, and community data stages. Evidence is limited to the README and indexed excerpts; some URL and deployment wiring is therefore omitted or shown as unverified.
Main entry points: logic/views.py Account API · chat/views.py Chat and community API · consumers.py Chat consumer · settings.py Django settings
Components 17
User entry
- Chat pages
chat/templates/chat/index.html
Accounts
- Account API
logic/views.py - User profiles
logic/models.py - Profile serializer
logic/serializers.py - Profile signals
logic/signals.py - Account routes
logic/urls.py
Chat and communities
- Chat and community API
chat/views.py - Chat serializers
chat/serializers.py - Chat data models
chat/models.py - Chat routes
chat/urls.py - WebSocket routes
chat/routing.py - Chat consumer
chat/consumers.py
Runtime infrastructure
- ASGI router
Whispr_backend/routing.py - Django settings
Whispr_backend/settings.py - SQLite database
db.sqlite3 - Redis channel layer
Other components
- User
Connections 15
- User → Account API: uses accounts
- Account routes → Account API: routes to
logic/urls.py - Account API → User profiles: reads and updates
logic/views.py - Account API → Profile serializer: serializes profiles
logic/views.py - Profile signals → User profiles: creates profile
logic/signals.py - User → Chat pages: opens chat
README.md - Chat routes → Chat and community API: routes to
chat/urls.py - Chat and community API → Chat data models: reads and writes
chat/views.py - Chat and community API → Chat serializers: serializes data
chat/views.py - WebSocket routes → Chat consumer: dispatches to
chat/routing.py - ASGI router → WebSocket routes: loads routes
Whispr_backend/routing.py - Chat consumer → Chat data models: persists messages
chat/consumers.py - Chat consumer → Redis channel layer: broadcasts events
README.md - Django settings → Redis channel layer: configures layer
Whispr_backend/settings.py - Django settings → SQLite database: configures database
Whispr_backend/settings.py