How mary1afshar/schedulens works
Main System Components
a) Frontend Layer (React Application)
• User Interface Components
• Authentication Views
• Protected Routes
• Context Management
b) Backend Services
• Firebase Authentication
• Firebase Database (likely Firestore)
• User Management
• Class Management
• Friend Management
Component Organization
A. Client-Side (React)
• Pages (Landing, Login, Signup, Home, Classes, Schedule, etc.)
• Components (Navbar, CourseCard, Profile, etc.)
• Context (AuthContext for state management)
• Protected Routes
B. Firebase Services
• Authentication Service
• Database Service
• Storage Service (if used for profile pictures)
Authentication Flow
• User → Login/Signup Components → Firebase Auth
• Firebase Auth → AuthContext → Protected Routes
Data Flow
• Components → Firebase Database (for class data)
• Components → Firebase Database (for friend connections)
• Firebase Database → Components (for displaying schedules)
Specific Implementation Details
Technical aspects:
Frontend (React):
• Components Layer
• Reusable Components (CourseCard, Navbar)
• Page-specific Components
• Context Layer (AuthContext)
• Routing Layer (ProtectedRoute)
• Pages Layer (Home, Login, etc.)
Firebase Services:
• Authentication
• Database
• Security Rules
Schedule comparison functionality
• User authentication
• Class management
• Friend connections
• Schedule comparison
• Data persistence
This system design should clearly communicate how ScheduLens achieves its goal of connecting students with shared classes while maintaining security and providing a smooth user experience.