How npv2k1/ktltweb works
High-Level Components
a) Frontend Layer:
• Static web application (HTML, CSS, JS)
• Key modules: Authentication, Shopping Cart, Orders, Products, Payment
b) Backend Layer (Spring Boot):
• REST API Services
• Security & JWT Authentication
• Domain Services
• Data Access Layer
• As green rectangles
c) Database Layer:
• MySQL 5.7
Detailed Component Breakdown
• Public Pages (index.html, lienhe.html)
• Auth Module (dangnhap.html)
• Shopping Module (giohang.html, thanhtoan.html)
• Order Management (donhang.html, orders.html)
• Shared Components (header.html)
• Service Layer (service.js, config.js)
Backend Components (Show as layered architecture):
• REST Controllers Layer (AuthResource, ProductResource, etc.)
• Service Layer (AuthService, ProductService, etc.)
• Repository Layer (ProductRepository, UserRepository, etc.)
• Domain Model Layer (Product, User, Order, etc.)
• Security Layer (JWT Configuration, WebSecurity)
Interactions and Flows
• Frontend to Backend communication via REST APIs
• Backend service interactions
• Data flow between layers
• Authentication flow with JWT
• Database operations
Key Technical Elements to Highlight
Security:
• JWT Authentication flow
• Security configurations
• Authentication entry points
Data Flow:
• DTO transformations (model package)
• Domain object mappings
• Repository interactions