How jhoni161/sheab-backend works
Main Components
a. Core Application Layer:
• Authentication/Authorization Module (auth/)
• User Management Module (usuario/)
• Role Management Module (rol/)
• Audit System (auditoria/)
b. Domain-Specific Modules:
• Resolution Management (resolucion/)
• Healthcare Provider Management (prestador/)
• SIC Module (sic/)
• SP Module (sp/)
• PAMEC Module (pamec/)
c. Support Services:
• PDF Generation Service (generarpdf/)
• Excel Generation Service (generar_excel/)
• Image Management Service (controlar_imagenes/)
• Database Backup Service (backup_bd/)
Architecture Patterns to Highlight
a. Module-based Architecture:
• Clear separation between modules using distinct containers
• Modular structure following NestJS patterns
b. Data Layer:
• Entity repositories
• Database connections
• Data flow patterns
Specific Design Elements
[Client Applications]
• ↓
[API Gateway Layer]
• ↓ ↓ ↓
[Auth] [Users] [Roles]
• ┴────┘
• ↓
[Core Business Logic Layer]
• [Resolution Module]
• Evaluation
• Services
• Requirements
• [Healthcare Provider Module]
• Provider Management
• Location Management
• [Audit Module]
• ↓
[Support Services Layer]
• [Document Generation]
• [File Management]
• [Backup Services]
• ↓
[Data Persistence Layer]
Integration Points
• External service connections
• API endpoints
• Authentication boundaries
• File storage interactions
Security Layer
• JWT implementation
• Role-based access control
• Audit logging points