How ongcaoboi/proxtech-shop works
Main Architecture Components
a) Client Layer (Top)
• Web Browser (Rectangle)
• REST Clients (Rectangle)
b) Security Layer (Below Client Layer)
• Spring Security Filter Chain (Hexagon)
• Authentication/Authorization components
c) Gateway/Controller Layer (Multiple Rectangles)
• Admin Controllers Package
• API Rest Controllers Package
• Main Controllers Package
d) Service Layer (Rounded Rectangles)
• Product Service
• Order Service
• User Service
• Cart Service
• Payment Service
• etc.
e) Repository Layer (Database Symbols)
• JPA Repositories
• Custom Repositories
• Entity Tables
Component Relationships
a) Data Flow
• Client → Security → Controllers → Services → Repositories → Database
• Response flow in reverse direction
b) Dependencies
• Service-to-Service communications
• Bean dependencies
• Entity relationships
Special Components
Create special sections for:
a) Global Beans (Hexagon)
• UserLogin Bean
• Brand Bean
• Category Bean
• Other global components
b) View Templates (Document Symbols)
• Thymeleaf templates
• Static resources
Key Technical Elements
Components:
a) Spring Framework Components
• Spring Boot
• Spring Security
• Spring Data JPA
• Thymeleaf
b) Model Components
• Entities
• DTOs/ViewModels
• Request/Response objects
Specific Implementation Details
Elements:
a) Authentication Flow
• Security filter chain
• User authentication process
b) Business Logic Flow
• Product management
• Order processing
• Cart handling
• Payment processing
Additional Notes
Annotations:
• File upload paths
• Static resource locations
• Configuration properties
• Bean scope indicators
The separation of admin and customer functionalities
Remember to maintain a balance between detail and clarity, focusing on the architectural relationships while avoiding overwhelming technical minutiae.