How solutionproviderdev/easeit-backend works
Main System Components
a) Core Services Layer:
• Authentication & Authorization Service
• Lead Management Service
• Communication Services (Facebook, WhatsApp)
• Meeting Management Service
• Dashboard Service
• Settings Management
• File Upload Service
b) Data Layer:
• MongoDB Collections (based on schemas)
• File Storage (public/files, public/profile_pictures)
c) Integration Layer:
• Facebook Integration
• WhatsApp Integration
• Daraz Integration
• Solution Bot (Gemini AI Integration)
Architectural Patterns to Highlight
The system follows a clear MVC (Model-View-Controller) pattern with some additional layers:
• Models (src/schemas)
• Controllers (src/controller)
• Routes (src/routes)
• Middlewares (src/middlewares)
• Helpers (src/helpers)
• Ongoing Tasks (src/ongoing)
• Cron Jobs (src/cron)
[External Services Layer]
• ▼
[API Gateway / Routes Layer]
• ▼
[Middleware Layer]
• ▼
[Controller Layer]
• ▼
[Service Layer]
• ▼
[Data Access Layer]
Important Connections
• Authentication flow
• Lead management workflow
• Message handling between external services
• Data flow between services
• Background task interactions
Component Details
For each major component, include:
• Input/Output specifications
• Key dependencies
• Primary responsibilities
• Integration points
Security Boundaries
Clearly mark:
• Authentication checkpoints
• Permission boundaries
• External API security
• File upload restrictions