How dambkz/projet2-cartocodile works
Main System Components
a) Frontend (Client)
• React Application
• Key components: Router, Pages, Components, Context
• Assets and Static Files
• Environment Configuration
b) Backend (Server)
• Express Application
• Module-based Architecture
• Database Connection Layer
• API Routes
• Testing Infrastructure
c) Database
• MySQL Server
• Schema Management
• Migrations System
Detailed Component Breakdown
Frontend Layer:
• Pages (Home, About, Gamepage)
• Components hierarchy
• Context management (PseudoData)
• Router configuration
• Asset management
Backend Layer:
• Express application core
• Modular architecture with:
• Item module (actions & repository)
• Database client
• Router configuration
• Testing infrastructure
• Environment configuration
Database Layer:
• MySQL server
• Schema management
• Migration system
• Seeding capability
Connection and Data Flow
• HTTP/REST communication between frontend and backend
• Database queries between backend and MySQL
• WebSocket connections (if implemented)
• File system interactions for static assets
Infrastructure Components
Containers for:
• Docker configuration
• Traefik reverse proxy
• Environment configuration
• GitHub Actions workflow
[Client Layer]
• React App
• Router
• Pages
• Components
• Context
• ▼ HTTP/REST
[Server Layer]
• Express App
• Router
• Modules
• Item Module
• Middleware
• ▼ SQL Queries
[Database Layer]
• MySQL
• Schema
• Migrations
[Infrastructure]
• Docker
• Traefik
• GitHub Actions
Additional Elements
• Environment configuration flow
• Testing infrastructure
• Build and deployment pipeline
• Security middleware
• Error handling flow
• Data validation layers