How plout-hu/shopping works
Main Components
Frontend Layer:
• Vue.js Application (ShoppingPages/shopping)
• Key Views:
• Login/Registration
• Shopping Cart
• Product Listing
• Order History
• Admin Dashboard
• Element UI Components
Backend Layer:
• Spring Boot Application
• Controllers Layer
• Service Layer
• Data Access Layer (Mappers)
• Security/Authentication Layer
Database Layer:
• MySQL Database (indicated by SQL/initDatabase.sql)
• Key Tables:
• Customers
• Goods
• Orders
• Shopping Cart
• Verification Codes
Architecture Pattern
The system follows a classic 3-tier architecture with additional cross-cutting concerns. Here's how to represent it:
Client Layer (Top)
• Vue.js Frontend (Port 90)
• Views
• Router
API Layer (Middle)
• Spring Boot Backend
• Controllers
• Services
• Mappers
Data Layer (Bottom)
• MySQL Database
Cross-Cutting Concerns (Side)
• Authentication (JWT)
• Exception Handling
• Email Service
Key Relationships to Highlight
• JWT token flow for authentication
• Data flow from Controllers → Services → Mappers → Database
• Email verification system flow
Technical Details
Frontend:
• Vue.js with Element UI
• Vue Router for navigation
• Port 90 for frontend service
Backend:
• Spring Boot 3.1.1
• MyBatis for data access
• JWT for authentication
• Email service integration
Additional Notes
• Database table relationships
• MVC pattern within the backend structure
• How authentication flows through the system
• How shopping cart operations are processed
• How orders are created and managed
• How admin functions are separated from regular user functions
• How the email verification system integrates with the main application