How stanislavtrue/mymessenger works
This is a real-time chat product with a React messenger and ASP.NET Core API. Users authenticate, browse chats, load and send messages, and manage read state, replies, reactions, pins, and deletions; SignalR supports live chat and Redis tracks presence. The graph preserves those documented-by-source subsystems, but frontend-to-API and hub event details are not shown, so those links are dashed and unverified. Persistence is represented as PostgreSQL-backed data access; source evidence shows EF Core configuration but not the deployment environment.
Main entry points: ChatDbContext.cs Chat database · ChatRoomsService.cs Room service · MessagesService.cs Message service · UsersService.cs User service
Components 24
Chat client
- Messenger app
frontend/chat/src/App.jsx - Messenger state
frontend/chat/src/features/messenger/context/MessengerContext.jsx - Chat and sidebar UI
frontend/chat/src/features/messenger/components - Login UI
frontend/chat/src/features/auth/LoginPage.jsx
API and realtime
- Auth endpoints
backend/Chat.API/Controllers/AuthController.cs - Chat endpoints
backend/Chat.API/Controllers/MessagesController.cs - Room endpoints
backend/Chat.API/Controllers/ChatRoomsController.cs - Realtime hub
backend/Chat.API/Hubs/ChatHub.cs
Application services
- User service
backend/Chat.Application/Services/UsersService.cs - Room service
backend/Chat.Application/Services/ChatRoomsService.cs - Message service
backend/Chat.Application/Services/MessagesService.cs
Persistence and infrastructure
- User repository
backend/Chat.Persistence/Repositories/UsersRepository.cs - Room and member data
backend/Chat.Persistence/Repositories/ChatRoomsRepository.cs - Membership data
backend/Chat.Persistence/Repositories/ChatMembersRepository.cs - Message data
backend/Chat.Persistence/Repositories/MessagesRepository.cs - Pinned messages
backend/Chat.Persistence/Repositories/PinnedMessagesRepository.cs - Reaction data
backend/Chat.Persistence/Repositories/MessageReactionsRepository.cs - Refresh tokens
backend/Chat.Persistence/Repositories/RefreshTokensRepository.cs - Chat database
backend/Chat.Persistence/ChatDbContext.cs - Presence tracker
backend/Chat.Infrastructure/Services/RedisUserStatusTracker.cs - JWT provider
backend/Chat.Infrastructure/Authentication/JwtProvider.cs
Other components
- Chat user
- Redis
- Browser client
Connections 34
- Chat user → Messenger app: uses
frontend/chat/src/App.jsx - Messenger app → Messenger state: provides state
frontend/chat/src/App.jsx - Messenger app → Chat and sidebar UI: renders
frontend/chat/src/App.jsx - Login UI → Browser client: accepts credentials
- Messenger state → Chat and sidebar UI: feeds state
- Messenger state → Browser client: calls API
- Browser client → Auth endpoints: HTTP requests
- Browser client → Chat endpoints: HTTP requests
- Browser client → Room endpoints: HTTP requests
- Browser client → Realtime hub: realtime connection
- Auth endpoints → User service: calls
backend/Chat.API/Controllers/AuthController.cs - Chat endpoints → Message service: calls
backend/Chat.API/Controllers/MessagesController.cs - Chat endpoints → Room service: calls
backend/Chat.API/Controllers/MessagesController.cs - Room endpoints → Room service: calls
backend/Chat.API/Controllers/ChatRoomsController.cs - User service → User repository: reads and writes
backend/Chat.Application/Services/UsersService.cs - User service → Refresh tokens: reads and writes
backend/Chat.Application/Services/UsersService.cs - User service → JWT provider: generates tokens
backend/Chat.Application/Services/UsersService.cs - Room service → Room and member data: reads and writes
- Room service → Membership data: reads and writes
backend/Chat.Application/Services/ChatRoomsService.cs - Room service → Message data: reads messages
backend/Chat.Application/Services/ChatRoomsService.cs - Room service → Pinned messages: reads pins
backend/Chat.Application/Services/ChatRoomsService.cs - Message service → Message data: reads and writes
backend/Chat.Application/Services/MessagesService.cs - Message service → Membership data: checks access
backend/Chat.Application/Services/MessagesService.cs - Message service → Reaction data: reads and writes
backend/Chat.Application/Services/MessagesService.cs - Message service → Pinned messages: manages pins
backend/Chat.Application/Services/MessagesService.cs - User repository → Chat database: queries
- Room and member data → Chat database: queries
- Membership data → Chat database: queries
backend/Chat.Persistence/Repositories/ChatMembersRepository.cs - Message data → Chat database: queries
backend/Chat.Persistence/Repositories/MessagesRepository.cs - Pinned messages → Chat database: queries
backend/Chat.Persistence/Repositories/PinnedMessagesRepository.cs - Reaction data → Chat database: queries
- Refresh tokens → Chat database: queries
- Realtime hub → Presence tracker: tracks presence
- Presence tracker → Redis: stores presence