How canove/whaticket-community works
High-Level Architecture Components
a. Frontend Layer:
• React Application (Port 3000)
• Key components:
• User Interface (Material UI)
• WebSocket Client
• REST API Client
• Authentication Module
b. Backend Layer:
• Node.js Application (Port 8080)
• Key components:
• Express Server
• WebSocket Server
• Authentication Service
• WhatsApp Integration Service
• Business Logic Services
• Database Access Layer
c. Database Layer:
• MySQL/MariaDB Database (Port 3306)
• Key entities:
• Users
• Tickets
• Messages
• Contacts
• WhatsApp Sessions
• Queues
• Settings
d. External Services:
• WhatsApp Web Client (via whatsapp-web.js)
• Nginx Reverse Proxy
• SSL/TLS Termination
Component Relationships
Client Browser → Nginx Reverse Proxy
Nginx Reverse Proxy → Frontend Server
Frontend Server → Backend API
Backend API → Database
Backend API → WhatsApp Web Client
WhatsApp Web Client → WhatsApp Servers
Data Flow Visualization
Following flows:
• User Authentication Flow
• Message Processing Flow
• Ticket Creation/Management Flow
• Real-time Updates Flow (WebSocket)
Key Technical Elements to Highlight
a. Security Layer:
• JWT Authentication
• SSL/TLS Encryption
• API Authorization
b. Real-time Communication:
• WebSocket Connections
• Event Broadcasting
c. Service Architecture:
• Controller Layer
• Service Layer
• Model Layer
• Queue Management
Deployment Architecture
Containerization structure:
• Docker Containers
• Network Configuration
• Volume Mounts
• Port Mappings
Additional Elements
Include:
• Load Balancer (if applicable)
• Cache Layer (if implemented)
• Message Queue System
• File Storage System