How boburrustamov/telegram-clone works
ChatApp is a web chat product with a React client and ASP.NET Core API. Users enter through the routed web app, then use chat, channel, account, and call features; the API delegates domain operations to infrastructure services backed by Entity Framework. The tree also documents messaging, reactions, files, administration, and real-time chat. Source evidence is limited to the supplied index and excerpts; unsampled client/API wiring is omitted or marked unverified.
Main entry points: AppDbContext.cs Application data · ChatService.cs Chat service · MessageService.cs Message service · MessagesController.cs HTTP controllers
Components 19
Web client
- Web app
frontend/web/src/app/App.tsx - App routes
frontend/web/src/app/routes/AppRouter.tsx - Chat page
frontend/web/src/pages/chat/ChatPage.tsx - Call interface
frontend/web/src/features/call/ui/CallOverlay.tsx - WebRTC service
frontend/web/src/features/call/model/webrtcService.ts
API and realtime
- HTTP controllers
backend/ChatApp.API/Controllers/MessagesController.cs - Channel controller
backend/ChatApp.API/Controllers/ChannelsController.cs - Admin controller
backend/ChatApp.API/Controllers/AdminController.cs - Chat hub
backend/ChatApp.API/Hubs/ChatHub.cs - API startup
backend/ChatApp.API/Program.cs
Domain services
- Chat service
backend/ChatApp.Infrastructure/Services/ChatService.cs - Message service
backend/ChatApp.Infrastructure/Services/MessageService.cs - Channel service
backend/ChatApp.Infrastructure/Services/ChannelService.cs - Authentication
backend/ChatApp.Infrastructure/Services/AuthService.cs - User service
backend/ChatApp.Infrastructure/Services/UserService.cs - Call service
backend/ChatApp.Infrastructure/Services/CallService.cs - Files and reactions
backend/ChatApp.Infrastructure/Services/FileService.cs
Persistence
- Application data
backend/ChatApp.Infrastructure/Data/AppDbContext.cs
Other components
- User
Connections 17
- User → Web app: opens
- Web app → App routes: renders
frontend/web/src/app/App.tsx - App routes → Chat page: routes to
- User → Call interface: starts calls
- Call interface → WebRTC service: uses
- HTTP controllers → Chat service: delegates
- HTTP controllers → Message service: delegates
backend/ChatApp.API/Controllers/MessagesController.cs - Channel controller → Channel service: delegates
backend/ChatApp.API/Controllers/ChannelsController.cs - Admin controller → User service: delegates
backend/ChatApp.API/Controllers/AdminController.cs - Admin controller → Chat service: delegates
backend/ChatApp.API/Controllers/AdminController.cs - Message service → Chat service: checks membership
backend/ChatApp.Infrastructure/Services/MessageService.cs - Authentication → Application data: reads and writes
backend/ChatApp.Infrastructure/Services/AuthService.cs - Channel service → Application data: reads and writes
backend/ChatApp.Infrastructure/Services/ChannelService.cs - Chat service → Application data: reads and writes
backend/ChatApp.Infrastructure/Services/ChatService.cs - Message service → Application data: reads and writes
backend/ChatApp.Infrastructure/Services/MessageService.cs - API startup → Chat hub: maps endpoint
backend/ChatApp.API/Program.cs - API startup → Application data: configures
backend/ChatApp.API/Program.cs