How hjlarry/flask-shop works
Main System Components
A. Frontend Layer
• Frontend application built with JavaScript/SCSS
• Components (cart, navbar, product filters, etc.)
• Static assets handling
B. Backend Layer (Flask Application)
• Core Modules:
• Account Management
• Product Management
• Order Processing
• Checkout System
• Dashboard/Admin Panel
• Discount System
• Plugin System
• Public Views
C. Database Layer
• Database models and relationships
• Caching mechanism (local_cache)
Specific Component Details
a) Core Application Structure:
Frontend (Browser) <-> Flask App <-> Database
b) Module Organization:
• Account
• Checkout
• Dashboard
• Order
• Product
• Public
• Plugin
c) Supporting Systems:
• Payment Integration (Alipay)
• Search Functionality
• Caching Layer
• Static File Handling
• Internationalization System
Interaction Flows
• User Authentication Flow
• Shopping Cart Process
• Checkout Pipeline
• Admin Dashboard Access
• Plugin Integration Points
Technical Specifications
Technical details:
• Flask as the web framework
• Webpack for frontend asset bundling
• SQLAlchemy for database operations
• Jinja2 templating system
• RESTful API endpoints