How aboalsim114/yalla_shoot_frontend works
Main System Components
A. Client Layer (Frontend)
• React.js single-page application structure
• Main component groups:
• Authentication components (Login/Register)
• Dashboard components
• User Interface components (Navbar, Graphs)
• Context providers (Theme, Auth)
B. API Layer
• Communication between frontend and backend
• REST endpoints for different features
• Authentication/authorization flow
C. Backend Layer (Spring Boot)
• While not in the frontend repository, include it as it's mentioned in README
• Main backend services:
• User management
• Team matching service
• Calorie calculation service
Component Relationships
[Client Components] ←→ [Context Providers]
• ↕
[Private Routes/Auth Guards]
• ↕
[API Layer]
• ↕
[Backend Services]
Specific Implementation Details
For the React frontend, structure the components as:
App.js
• Context Providers (AuthContext, ThemeContext)
• Routes
• Public Routes (HomePage, Login, Register)
• Private Routes (DashboardUser, Profile, CreateTeam)
• Shared Components (Navbar, Graphs)
Key Aspects to Highlight
• Authentication Flow:
• Path from Login/Register components through AuthContext to backend
• How PrivateRoute protects dashboard routes
• Feature Modules:
• Team matching system
• Calorie calculation feature
• User dashboard with graphs and statistics