How github1586/nuxt-bnhcp works
Main System Components
a) Client-Side (Frontend):
• Nuxt.js Framework Layer
• Vue Components Structure
• State Management (Vuex Store)
• Static Assets & Resources
b) Server-Side:
• Express.js Server
• API Controllers
• Database Layer (MySQL)
• Redis Cache Layer
c) External Services:
• Tencent Cloud Serverless
• Nginx (Reverse Proxy)
[Client Browsers/Devices]
• ↓
[Nginx Reverse Proxy]
• ↓
[Tencent Cloud Serverless]
[Nuxt.js SSR Engine]
• ↙ ↘
[Frontend] [Backend]
[MySQL Database] ← → [Redis Cache]
Component Relationships to Highlight
• Data flow between the API controllers and the database
• Caching mechanism with Redis
• Demonstrate the frontend routing system
• Vuex store interactions
Specific Implementation Details
Frontend Structure:
• Pages directory structure (/pages)
• Components hierarchy (/components)
• Layout system (/layouts)
• Plugin system (/plugins)
Backend Structure:
• API Controllers (/server/api/controller)
• Database Models (/server/api/model)
• Redis Cache Implementation (/server/api/redis)
Key Features to Highlight
• SSR Implementation
• Authentication flow
• Shopping cart system
• Course management
• Order processing
• Payment integration
• Redis caching for homepage and pagination
Technical Stack Labels
Frontend:
• Nuxt.js/Vue.js
• Vuex
• Axios
Backend:
• Express.js
• Node.js
• MySQL
• Redis
Infrastructure:
• Tencent Cloud Serverless
• Nginx