How tharuni-git/social-media-platform works
SocialPulse is a social feed and real-time chat application, with a React client behind an API gateway and separate user, content, chat, notification, and media services. The main workflow is signing in, then browsing or creating posts and interacting with people; chat and notification updates provide real-time branches. The README documents service, database, object-storage, and event-bus connections. Sampled source confirms selected controller-to-service and service-to-event relationships; other documented service internals are represented at subsystem level.
Main entry points: server.ts API gateway · users.controller.ts User service · messages.service.ts Messages and receipts · App.jsx SocialPulse UI
Components 21
Client and gateway
- SocialPulse UI
socialpulse/src/App.jsx - API gateway
api-gateway/src/server.ts
Identity and social graph
- User service
user-service/src/users/users.controller.ts - Authentication
user-service/src/auth/auth.service.ts - User Postgres
Feed and moderation
- Posts and comments
content-service/src/posts/posts.controller.ts - Feed and interactions
content-service/src/posts/posts.service.ts - Content moderation
content-service/src/moderation/moderation.controller.ts - Content Postgres
Messaging
- Chat WebSocket
chat-service/src/gateway/chat.gateway.ts - Conversations
chat-service/src/conversations/conversations.service.ts - Messages and receipts
chat-service/src/messages/messages.service.ts - Chat blocks
chat-service/src/blocks/blocks.service.ts - Chat MongoDB
- Presence and Redis
chat-service/src/redis/presence.service.ts
Notifications and media
- Notification service
notification-service/src/notifications.service.ts - Notification MongoDB
- Media service
media-service/src/media.service.ts - MinIO storage
Other components
- User
- RabbitMQ events
Connections 30
- User → SocialPulse UI: uses
README.md - SocialPulse UI → API gateway: REST and WS
README.md - SocialPulse UI → MinIO storage: uploads and reads
README.md - API gateway → User service: routes requests
README.md - API gateway → Posts and comments: routes requests
README.md - API gateway → Chat WebSocket: routes requests
README.md - API gateway → Notification service: routes requests
README.md - API gateway → Media service: routes requests
README.md - User service → Authentication: delegates
- Authentication → User Postgres: reads and writes
user-service/src/auth/auth.service.ts - Authentication → RabbitMQ events: publishes registration
user-service/src/auth/auth.service.ts - User service → User Postgres: reads and writes
README.md - User service → RabbitMQ events: publishes social events
README.md - Posts and comments → Feed and interactions: delegates
content-service/src/posts/posts.controller.ts - Feed and interactions → Content Postgres: reads and writes
content-service/src/posts/posts.service.ts - Feed and interactions → RabbitMQ events: publishes post events
content-service/src/posts/posts.service.ts - Content moderation → Content Postgres: moderates content
- Chat WebSocket → Messages and receipts: dispatches messages
- Chat WebSocket → Conversations: dispatches chat
- Conversations → Chat blocks: checks blocks
chat-service/src/conversations/conversations.service.ts - Messages and receipts → Chat blocks: checks blocks
chat-service/src/messages/messages.service.ts - Messages and receipts → RabbitMQ events: publishes sent event
chat-service/src/messages/messages.service.ts - Conversations → Chat MongoDB: reads and writes
README.md - Messages and receipts → Chat MongoDB: reads and writes
chat-service/src/messages/messages.service.ts - Presence and Redis → Chat MongoDB: presence via Redis
- RabbitMQ events → Notification service: delivers events
README.md - Notification service → Notification MongoDB: reads and writes
README.md - Media service → MinIO storage: stores media
README.md - RabbitMQ events → Posts and comments: delivers follow events
README.md - RabbitMQ events → Chat blocks: delivers block events
README.md