How narlae/refresh works
Main Components
a. Frontend Layer:
• Static Resources (CSS, JS, Images)
• Thymeleaf Templates
• Client-side JavaScript modules
b. Security Layer:
• JWT Authentication/Authorization
• Custom Filters (JwtAuthenticationFilter, JwtIdPwdAuthenticationFilter)
• Security Config
c. Backend Layer (Controllers):
• Product Management
• Order Processing
• User Management
• Cart Management
• Address Management
• Board Management
d. Service Layer:
• Business Logic Services
• Payment Integration (KakaoPay)
e. Data Access Layer:
• JPA Repositories
• Domain Entities
Component Relationships
• User requests → Security Layer → Controllers
• Controllers → Services → Repositories
• Authentication flow with JWT tokens
• Payment processing flow
Specific Implementation Details
a. Authentication Flow:
• JWT token generation and validation
• Cookie management (httponly for access/refresh tokens)
• Security filters chain
b. Product Management:
• Category hierarchy
• Product listing and details
• Review system
c. Order Processing:
• Cart management
• Payment integration
• Order status tracking
d. Address Management:
• CRUD operations
• Address validation
External Integrations
• KakaoPay Payment Gateway
• Kakao Maps API
Additional Elements
Annotations for:
• Security configurations
• Database relationships
• API endpoints
• Cache layers (if any)
MVC Pattern
• Controllers in web package
• Views in templates
• Models in domain package
Repository Pattern
• Clear separation of data access layer
• JPA implementation
Service Layer Pattern
• Business logic encapsulation
• Transaction management
Security Pattern
• JWT-based authentication
• Role-based authorization
Remember to include notes about:
• Docker containerization
• MariaDB database
• Spring Security implementation
• JWT token flow
• Async operations for the review board
This will provide a comprehensive view of the system while highlighting the key architectural decisions and security implementations.