How ikerom3/learn-lingo works
Learn Lingo is a React app for discovering language tutors. A visitor enters through the landing page, navigates to the tutor directory, and can filter and browse tutor cards; the directory loads teacher records from Firebase. Authentication is initialized separately through a shared provider, with auth helpers and a private-route component available. The tree also contains a favorites page, but the shown app routes do not connect it. Evidence is limited to the README, source index, and sampled files, so unsampled relationships are omitted.
Main entry points: App.jsx App router · Teachers.jsx Teacher directory · AuthContext.jsx Auth provider · firebase.js Firebase Auth
Components 18
App and navigation
- App router
src/App.jsx - Header
src/components/Header/Header.jsx - Landing hero
src/components/Hero/Hero.jsx - Sprite injector
src/components/SpriteInjector/SpriteInjector.jsx - Color palettes
src/constants/palettes.js
Tutor discovery
- Teacher directory
src/Page/Teachers/Teachers.jsx - Teacher loading hook
src/hooks/useTeachers.js - Teacher card
src/components/TeacherCard/TeacherCard.jsx - Favorites page
src/Page/Favorites/Favorites.jsx
Authentication
- Auth provider
src/context/AuthContext.jsx - Auth hook
src/hooks/useAuth.js - Private route
src/components/PrivateRoute/PrivateRoute.jsx - Auth operations
src/services/authService.js
Firebase services
- Firebase Auth
src/services/firebase.js - Teacher data service
src/services/teachersService.js - Realtime Database
src/services/firebase.js
Other components
- Visitor
- Firebase
Connections 17
- Visitor → App router: uses
- App router → Header: renders
src/App.jsx - App router → Landing hero: routes to
src/App.jsx - App router → Teacher directory: routes to
src/App.jsx - App router → Sprite injector: renders
src/App.jsx - App router → Color palettes: selects palette
src/App.jsx - App router → Auth provider: provides auth
src/App.jsx - Teacher directory → Teacher loading hook: loads teachers
src/Page/Teachers/Teachers.jsx - Teacher directory → Teacher card: renders cards
src/Page/Teachers/Teachers.jsx - Teacher loading hook → Teacher data service: fetches records
src/hooks/useTeachers.js - Teacher data service → Realtime Database: reads records
src/services/teachersService.js - Auth hook → Auth provider: reads context
src/hooks/useAuth.js - Private route → Auth hook: checks auth
src/components/PrivateRoute/PrivateRoute.jsx - Auth provider → Firebase Auth: observes session
src/context/AuthContext.jsx - Auth operations → Firebase Auth: authenticates users
src/services/authService.js - Firebase Auth → Firebase: connects
- Realtime Database → Firebase: connects