How redcoat21/dolphin-streak works
Main Architecture Components
The system follows a modern full-stack architecture with clear separation between frontend and backend:
a) Frontend Layer (dolphin-streak-frontend):
• Built with Next.js (React-based framework)
• Uses TRPC for type-safe API communication
• Contains UI components and pages
• Implements internationalization (i18n)
• Uses Tailwind CSS for styling
b) Backend Layer (dolphin-streak-backend):
• Built with NestJS framework
• Contains multiple domain-specific modules
• Implements authentication and authorization
• Handles file uploads and cloud storage
• Includes AI/Voice recognition capabilities
Key Components
Frontend Components:
[Client Browser] → [Next.js Frontend]
• Auth Pages
• Course Pages
• Forum System
• Daily Challenges
• Language Preference System
Backend Services:
[NestJS Backend]
• Core Services
• Auth Service
• User Service
• Course Service
• Language Service
• Question Service
• Supporting Services
• AI Service
• Voice AI Service
• Mail Service
• Upload Service
• Security Layer
• Encryption Service
Data Flow and Integration Points
Key interactions:
• Client-Server communication via TRPC
• Authentication flow with JWT
• File upload flow to Cloudinary
• Voice recognition processing
• Email notification system
Database and External Services
Components:
• MongoDB Database (indicated by schema files)
• Cloudinary (for media storage)
• Email Service Integration
• AI/Voice Recognition Services
Security Layer
Security components:
• JWT Authentication
• Bearer Token Authorization
• Role-based Access Control
• Password Reset System
Data Layer (Bottom)
Remember to emphasize the language learning specific features like:
• Course progression
• Question types (multiple choice, fill-in-the-blanks)
• Voice recognition exercises
• User streak tracking
• Forum interactions for community learning
This architecture should be represented as a modern, scalable system that can handle multiple users learning different languages simultaneously while maintaining performance and security.