How atulsingh11-0/real-time-chat-app works
This Django Channels application serves a room list and room history over HTTP, then handles live chat over WebSockets: messages are persisted and broadcast to clients in the same room. Authentication and admin routes are configured through Django. The README also advertises online P2P video calling, but the sampled source does not show its implementation; that capability is retained as an unverified branch. Evidence is limited to the README and indexed excerpts.
Main entry points: views.py Room views · models.py Room and message models · consumers.py Chat consumer · urls.py HTTP routes
Components 16
Web experience
- Browser UI
wechatpp/templates/room.html - Room listing
wechatpp/templates/rooms.html - Login page
wechatpp/templates/registration/login.html - P2P video
wechatpp/templates/room.html - Chat routes
wechatpp/chatapp/urls.py - Room views
wechatpp/chatapp/views.py
Realtime chat
- WebSocket routes
wechatpp/wechatpp/routing.py - Chat consumer
wechatpp/wechatpp/consumers.py - Channel layer
wechatpp/wechatpp/settings.py
Application data
- Room and message models
wechatpp/chatapp/models.py - SQLite database
wechatpp/wechatpp/settings.py
Django platform
- HTTP routes
wechatpp/wechatpp/urls.py - Authentication
wechatpp/wechatpp/settings.py - Admin registration
wechatpp/chatapp/admin.py - ASGI entry
wechatpp/wechatpp/asgi.py
Other components
- Visitor
Connections 15
- Visitor → HTTP routes: opens pages
wechatpp/wechatpp/urls.py - HTTP routes → Chat routes: includes routes
wechatpp/wechatpp/urls.py - HTTP routes → Authentication: includes auth routes
wechatpp/wechatpp/urls.py - Chat routes → Room views: routes requests
wechatpp/chatapp/urls.py - Room views → Room and message models: queries rooms and messages
wechatpp/chatapp/views.py - Room views → Room listing: renders room list
wechatpp/chatapp/views.py - Room views → Browser UI: renders room
wechatpp/chatapp/views.py - Visitor → Login page: signs in
- Admin registration → Room and message models: registers models
wechatpp/chatapp/admin.py - ASGI entry → WebSocket routes: routes WebSockets
wechatpp/wechatpp/asgi.py - WebSocket routes → Chat consumer: dispatches connections
wechatpp/wechatpp/routing.py - Chat consumer → Room and message models: persists messages
wechatpp/wechatpp/consumers.py - Chat consumer → Channel layer: sends room events
wechatpp/wechatpp/consumers.py - Room and message models → SQLite database: stores records
- Visitor → P2P video: uses video calling
README.md