How vladman-25/mycircle works
Main Components Overview
a) Client Layer (Frontend)
• React Application (Port 3001)
• Component structure showing main features:
• Authentication (Login/Register)
• Feed System
• Chat System
• Page Management
• Post Management
• User Management
b) Server Layer (Backend - Port 5000)
• Node.js Application
• Express Server
• API Routes
• Controllers
• Models
c) Database Layer
• MongoDB
d) Infrastructure Layer
• Nginx (Port 80/443)
• PM2 Process Manager
• SSL/TLS (Certbot)
Component Relationships
a) External Traffic Flow:
• HTTPS Traffic → Nginx (Port 80/443)
• Nginx → Frontend (Port 3001)
• Nginx → Backend API (Port 5000)
b) Internal Communications:
• Frontend → Backend API Routes
• Backend Controllers → MongoDB
• WebSocket Connections for Chat Features
Specific Component Details
Frontend Section:
• Auth Module
• Feed Component
• Chat System
• User Management
• Page Management
• Post/Comment System
• Search Functionality
Backend Section:
• Controllers by functionality:
• Authentication
• User Management
• Content Management (Posts/Pages)
• Real-time Features (Chat/Messages)
• Social Features (Friends/Likes)
Notes Section
Notes about:
• Deployment workflow
• Environment-specific configurations
• Security measures
• Scaling considerations
This system design should clearly show how the application handles both synchronous (REST API) and asynchronous (WebSocket) communications, as well as the file storage system for media uploads.