How web3edubrasil/web3edu-app works
Main Components
A. Frontend Layer:
• Next.js Application (Client-Side)
• Landing Page Components
• Learning Interface Components
• User Management Components
• Program Management Components
• KYC Components
B. API Layer (Next.js API Routes):
• User Management APIs
• Trail/Content Management APIs
• Program Management APIs
• KYC APIs
• AI Integration API
C. Authentication & Web3 Layer:
• Web3Auth Integration
• Firebase Authentication
D. External Services:
• Firebase (Backend as a Service)
• Web3 Services
• AI Services (indicated by the AI route)
┌─────────────────────────────────────────────────────────┐
• Client Layer (Browser) │
• ┘
• ↕
┌─────────────────────────────────────────────────────────┐
• Next.js Application Layer │
• ┬─────────────────┬────────────┬───────────┤
• Pages & │ API │ Auth │ Static │
• Components │ Routes │ Layer │ Assets │
• ┴─────────────────┴────────────┴───────────┘
• ↕
┌─────────────────────────────────────────────────────────┐
• External Services │
• ┬─────────────────┬────────────────────────┤
• Firebase │ Web3Auth │ AI Services │
• ┴─────────────────┴────────────────────────┘
Detailed Component Breakdown
A. Frontend Components:
• Relationship between pages and their components
• Routing structure (/learn, /programPage, etc.)
• Component hierarchy
B. API Routes:
• Related endpoints (user, trail, program)
• Data flow between endpoints
• Error handling and validation layers
C. Authentication Flow:
• Detail the Web3Auth integration
• Firebase authentication process
• KYC flow
Important Elements to Emphasize
• The Next.js app router structure
• The separation between client and server components
• The integration points with Web3 services
• The content management system structure
• The user journey flow