How javier1234559/weebuns-client works
Main Components Identification
The system should be divided into these major components:
a) Frontend Architecture:
• Public Module (Landing pages, authentication)
• Private Module (Course learning, user dashboard)
• Admin Module (Course management, user management)
• Core Features (Essays, Vocabulary, Community, Learning Spaces)
b) State Management Layer:
• Redux Store (auth, modal, theme slices)
• Context API (Ad, Modal contexts)
c) Service Layer:
• API Services
• Storage Services
• Token Management
• GraphQL Client
┌─ Frontend Application ─────────────────────────────────────┐
• ┌─ Layouts ──────┐ ┌─ Core Features ─────────────────┐ │
• Public Layout │ │ - Courses │ │
• Private Layout │ │ - Essays │ │
• Admin Layout │ │ - Vocabulary │ │
• ┘ │ - Community │ │
• Learning Spaces │ │
• ┌─ State ───────┐ └────────────────────────────────┘ │
• Redux Store │ │
• Context API │ ┌─ Common Components ─────────────┐ │
• ┘ │ - UI Components │ │
• Forms │ │
• ┌─ Services ────┐ │ - Modals │ │
• API Client │ └────────────────────────────────┘ │
• GraphQL │ │
• Storage │ ┌─ Utils & Helpers ──────────────┐ │
• ┘ │ - Format Utils │ │
• Error Handlers │ │
• ┘ │
• ┘
Component Relationships
• Data flow between components
• Component dependencies
• Service interactions
• State management connections
Important Details
a) Authentication Flow:
• Login/Register process
• Token management
• Protected routes
b) Feature Module Structure:
• Course management
• Essay system
• Vocabulary learning
• Community features
c) Admin Dashboard:
• Course management
• User management
• Revenue tracking
Technical Stack Indicators
Technology badges for:
• React + TypeScript
• Vite
• Redux
• GraphQL
• Cypress (Testing)