How smesa/react-coding-challenges works
High-Level Project Architecture
[Overall Project Structure]
• Challenge Management Layer
• Easy Challenges
• Medium Challenges
• Hard Challenges
• Common Infrastructure
Individual Challenge Architecture
[Spootify Architecture]
• Presentation Layer
• Components (UI)
• Routes
• Application Layer
• Use Cases
• Domain Layer
• Entities
• Repository Interfaces
• Infrastructure Layer
• API
• Services
• Repository Implementation
Key Elements to Include:
Component Relationships
• Use double lines for context provider relationships
Specific Implementation Details
For each challenge, highlight its unique architectural aspects:
a) Spootify:
• Clean Architecture pattern
• Spotify API integration
• Context-based state management
b) Chatter:
• WebSocket communication
• Real-time messaging architecture
• Component hierarchy for chat interface
c) Dark Mode:
• Theme context provider
• Custom hooks architecture
• Global state management
d) Rocket Ship:
• Component render optimization
• Performance monitoring points
Guidelines for Drawing:
A high-level container showing the main application shell
┌─────────────────────────────────┐
• React Application Container │
• ┤
• ┌─────────┐ ┌─────────┐ │
• Challenge│ │Challenge│ │
• A │ │ B │ │
• ┘ └─────────┘ │
• ┘
• Component hierarchy
• Data flow
• External service integration
• State management
• Key features implementation
Use standardized symbols
• Rectangles: Components/Modules
• Clouds: External services
• Hexagons: Core business logic