How roundnetfrance/roundnet-france works
Main System Components
a) Client Layer:
• Next.js Frontend (React Components)
• Admin Dashboard
• Public Pages
• Authentication UI
b) API Layer:
• Next.js API Routes
• Authentication Endpoints
• Resource Endpoints (clubs, events, federation members, etc.)
c) Data Layer:
• MongoDB Database
• Firebase Storage (for images and files)
Key Architectural Elements to Highlight
a) Frontend Architecture:
• Pages Directory (routing)
• Components (organized by feature)
• Admin Interface
• Public Interface
• UI Components Library
b) Backend Services:
• Next-Auth Authentication Service
• API Routes
• Form Handling & Validation (Joi)
• Email Service
• File Upload Service
c) Data Management:
• SWR Data Fetching
• MongoDB Models
• Firebase Storage
• Data Validation Layer
Component Relationships
• Client-Server Communication
• Authentication Flow
• Data Flow between Components
• External Service Integration
Specific Implementation Details
a) Frontend Structure:
• Component hierarchy (/components directory)
• Page routing system (/pages directory)
• Admin dashboard structure (/rf-admin)
b) API Architecture:
• RESTful endpoints (/api directory)
• Authentication endpoints
• Resource management endpoints
c) Data Flow:
• SWR data fetching patterns
• MongoDB interactions
• File storage with Firebase