How hugues-dtankouo/problems works
Main System Components
a) Web Application Layer:
• Frontend (Templates & Static Assets)
• Backend (FastAPI/Jinja Server)
• Problem Engine
• Testing Framework
b) Core Components:
• Problem Repository
• Code Execution Engine
• Test Runner
• User Interface
┌─ Web Browser ─┐
• CodeMirror │
• HTML/CSS/JS │
• ┬────────┘
┌─ FastAPI Server ──┐ ┌─ Problem Engine ─┐
• Route Handling │←→│ - Problem Loader │
• Template Engine │ │ - Code Executor │
• ┬─────────┘ └────────┬────────┘
• ┌────┴───────────────────────┴────┐
• Test Framework │
• Pytest Integration │
• Test Case Management │
• ┬──────────────┘
┌─ Problem Repository ─┐ ┌─ Test Data ─┐
• Anagram │←→│ - Test Cases │
• Knapsack │ │ - Fixtures │
• ┘ └────────────┘
Implementation Details
• The separation between problem definitions (/src/problems)
• Test implementation (/tests)
• Frontend assets (templates and static folders)
• Configuration files (poetry.toml, pyproject.toml)
Key Interactions
Flows: