How codeslips/bamboo_growth works
Main System Components
a) Client Layer:
• React Frontend (Vite-based)
• UI Components (Material UI)
• Specialized Media Components (Video.js, Peaks.js)
• WebSocket Connections
• State Management (Context API evident from contexts folder)
b) Server Layer:
• Sanic API Framework
• Authentication System (JWT)
• Course Management
• User Management
• Lesson Management
• File Management
c) External Services:
• Tencent COS (File Storage)
• Database (PostgreSQL with asyncpg)
Component Relationships
[Client Layer] <---> [API Gateway Layer] <---> [Service Layer] <---> [Data Layer]
• ↑ ↑
• >
• (WebSocket Connection for Real-time Features)
Detailed Component Breakdown
Frontend Components (Top):
• Course Management (/src/components/course)
• Lesson Management (/src/components/lesson)
• User Management (/src/components/users)
• Media Components (/src/components/media)
• Authentication Context
• WebSocket Context
Backend Services (Middle):
• Course Service (course/)
• Lesson Service (lessons/)
• User Service (user/)
• Resource Service (resources/)
• Authentication Service (utils/auth.py)
• File Management Service (local_file_api/)
Data Layer (Bottom):
• Database (PostgreSQL)
• File Storage (Tencent COS)
Flow Indicators
• API calls between frontend and backend
• Database queries
• File storage operations
• WebSocket communications
• Authentication flows
Additional Elements
Include:
• Version information
• Technology stack labels
• Security boundaries
• Load balancing indicators (if applicable)