How damianmielcarek/crm works
Main Components Identification
The system is a Spring Boot-based CRM application with the following key components:
A. Backend Layer Components:
• Security Layer (SecurityConfig.java)
• Web Configuration (WebAppConfig.java)
• Controllers Layer
• Service Layer
• Repository Layer
• Entity Layer
• Export Functionality
• View Resolvers
B. Database Layer:
• MySQL Database
C. Frontend Layer:
• Thymeleaf Templates
• Static Resources
[Client/Browser] → [Security Layer] → [Controllers] → [Services] → [Repositories] → [Database]
[Export Services (PDF/CSV/Excel)] ← [View Resolvers] → [Templates]
Component Details
Security Layer:
• Spring Security configuration
• Role-based access control (User, Manager, Owner, Admin)
Controller Layer:
• CustomerController
• ContractController
• UserController
• Export Controllers (CSV, PDF)
• RegisterController
Service Layer:
• CustomerService
• ContractService
• UserService
• PdfService
• RoleService
Repository Layer:
• CustomerRepository
• ContractRepository
• UserRepository
• PdfRepository
• RoleRepository
Entity Layer:
• Customer
• Contract
• User
• Role
• Category
• Status
Export Functionality:
• PDF Generation
• CSV Export
• Excel Export
• Black: Regular data flow
• Red: Security-related flow
• Green: Export operations