How siddharthg-7/chat-platform works
One to One Chat Platform is a React client backed by a Django REST and Channels service. The main user journey is authenticate, open or create a conversation, exchange messages, and receive updates; the README also describes profile, group-chat, and push-notification capabilities. The sampled service code confirms API calls, message dispatch and notification creation. Backend views, WebSocket consumers, and several page implementations were not sampled, so those relationships are omitted or marked unverified rather than inferred.
Main entry points: auth.service.js Auth service · chat.service.js Chat service · api.js HTTP client · dispatcher.py Message dispatcher
Components 18
React client
- App routing
frontend/src/App.jsx - Chat page
frontend/src/pages/Chat.jsx - Push subscription
frontend/src/services/push.service.js
Identity and profiles
- Auth service
frontend/src/services/auth.service.js - Account API
backend/apps/accounts/views.py - Account records
backend/apps/accounts/models.py
Messaging
- Chat service
frontend/src/services/chat.service.js - Chat API
backend/apps/chat/views.py - Message dispatcher
backend/apps/chat/services/dispatcher.py - Message service
backend/apps/chat/services/message.py - Conversation data
backend/apps/chat/models.py - Notification service
backend/apps/chat/services/notification.py - Notification records
backend/apps/notifications/models.py - Push delivery
backend/apps/notifications/services.py
Backend platform
- HTTP client
frontend/src/services/api.js - Django configuration
backend/config/settings.py - Media storage
backend/apps/common/cloudinary_service.py
Other components
- User
Connections 15
- User → App routing: uses
frontend/src/App.jsx - App routing → Chat page: routes to
frontend/src/App.jsx - User → Auth service: authenticates
- Auth service → HTTP client: sends requests
frontend/src/services/auth.service.js - Auth service → Account API: requests account endpoints
frontend/src/services/auth.service.js - User → Chat service: uses chat
- Chat service → HTTP client: sends requests
frontend/src/services/chat.service.js - Chat service → Chat API: requests chat endpoints
frontend/src/services/chat.service.js - Message dispatcher → Message service: calls
backend/apps/chat/services/dispatcher.py - Message dispatcher → Notification service: calls
backend/apps/chat/services/dispatcher.py - Notification service → Push delivery: delegates
backend/apps/chat/services/notification.py - Push delivery → Notification records: creates records
backend/apps/notifications/services.py - Push subscription → HTTP client: registers subscription
frontend/src/services/push.service.js - Django configuration → Conversation data: configures database access
- User → Push subscription: enables push