How sifat202/reachedu works
ReachEdu is a React learning-platform frontend: visitors browse learning tracks and courses, learners authenticate and view an account dashboard, and teacher-role users can access course-upload and revenue areas. The app mounts shared authentication state and a route table, with a shared Axios client attaching Firebase ID tokens to backend requests. The README describes only the React/Vite template, so product capabilities and routes here are grounded in the source index and sampled router; unsampled page behavior and backend internals are not established.
Main entry points: Router.jsx Route table · Api.jsx Authenticated API client · AuthProvider.jsx Auth state · main.jsx React entry
Components 22
App shell and routing
- React entry
src/main.jsx - Route table
src/Router/Router.jsx - Shared layout
src/Homelayout/Homelayout.jsx - Role navigation
src/Components/Navbar.jsx - Authenticated API client
src/Api/Api.jsx
Identity and access
- Auth state
src/Auth/AuthProvider.jsx - Firebase auth operations
src/Auth/AuthService.js - Firebase auth client
Firebase/firebase.config.js - Login and registration
src/Authlayout/Login.jsx - Teacher access guard
src/Router/RouteProtections/TeacherRoute.jsx
Learning experience
- Home
src/Pages/Home.jsx - Learning tracks
src/Pages/Tracks.jsx - My courses
src/Pages/Course.jsx - Course catalog
src/Pages/MoreCourses.jsx - Course card
src/Components/CourseCard.jsx - Course details
src/Pages/CourseDetails.jsx - Course access
src/Components/GetCourse.jsx - Learner dashboard
src/Pages/Dashboard.jsx
Teacher tools
- Course upload
src/Pages/Upload.jsx - Teacher revenue
src/Pages/Revenue.jsx
Other components
- Learner / teacher
- ReachEdu API
Connections 33
- Learner / teacher → React entry: opens app
src/main.jsx - React entry → Auth state: wraps routes
src/main.jsx - React entry → Route table: mounts router
src/main.jsx - Route table → Shared layout: routes through
src/Router/Router.jsx - Route table → Home: routes to
src/Router/Router.jsx - Route table → Learning tracks: routes to
src/Router/Router.jsx - Route table → My courses: routes to
src/Router/Router.jsx - Route table → Course catalog: routes to
src/Router/Router.jsx - Route table → Course details: routes to
src/Router/Router.jsx - Route table → Course access: routes to
src/Router/Router.jsx - Route table → Login and registration: routes to
src/Router/Router.jsx - Route table → Learner dashboard: routes to
src/Router/Router.jsx - Route table → Teacher access guard: guards teacher pages
src/Router/Router.jsx - Route table → Course upload: routes through guard
src/Router/Router.jsx - Route table → Teacher revenue: routes through guard
src/Router/Router.jsx - Shared layout → Role navigation: renders
src/Homelayout/Homelayout.jsx - Role navigation → Auth state: reads auth state
src/Components/Navbar.jsx - Role navigation → Authenticated API client: fetches user role
src/Components/Navbar.jsx - Login and registration → Auth state: calls auth actions
src/Authlayout/Login.jsx - Login and registration → Authenticated API client: creates student record
src/Authlayout/Login.jsx - Auth state → Firebase auth operations: delegates auth
src/Auth/AuthProvider.jsx - Auth state → Firebase auth client: observes auth state
src/Auth/AuthProvider.jsx - Firebase auth operations → Firebase auth client: uses auth client
src/Auth/AuthService.js - Teacher access guard → Auth state: reads auth state
src/Router/RouteProtections/TeacherRoute.jsx - Teacher access guard → Authenticated API client: checks teacher role
src/Router/RouteProtections/TeacherRoute.jsx - Authenticated API client → Firebase auth client: gets ID token
src/Api/Api.jsx - Authenticated API client → ReachEdu API: sends HTTP requests
src/Api/Api.jsx - Course catalog → Authenticated API client: loads courses
src/Pages/MoreCourses.jsx - Course catalog → Course card: renders cards
src/Pages/MoreCourses.jsx - Course details → Authenticated API client: loads course data
src/Pages/CourseDetails.jsx - Learner dashboard → Authenticated API client: loads and updates profile
src/Pages/Dashboard.jsx - Learner dashboard → Auth state: uses user and logout
src/Pages/Dashboard.jsx - Course upload → Authenticated API client: uses course API
src/Pages/Upload.jsx