How egbusonemmanuel/med-distinction-frontend works
MedLearn is a medical-learning web app. Learners enter through the landing and sign-in experience, then use protected dashboard and study areas; paid and admin access is gated in the app router. The documented product also includes competitions, leaderboards, subscriptions, a digital library, and administrative content management. The sampled frontend shows Supabase authentication and a separate HTTP API helper for leaderboard, groups, AI, and library operations. Backend coverage is limited: the tree contains a library route, but its callers and server wiring are not established by the excerpts.
Main entry points: App.jsx Route and access · supabaseClient.js Supabase client · Dashboard.jsx Learner dashboard · api.js API client
Components 20
App and access
- Route and access
src/App.jsx - Landing page
src/pages/Landing.jsx - Sign-in
src/pages/Auth.jsx - OAuth callback
src/pages/AuthCallback.jsx
Learning experience
- Learner dashboard
src/components/Dashboard.jsx - Quizzes
src/pages/Quizzes.jsx - Flashcards
src/pages/Flashcards.jsx - Courses
src/pages/Courses.jsx - Digital library
src/pages/Library.jsx - Competitions
src/pages/Competitions.jsx
Progress and management
- Leaderboard
src/pages/Leaderboard.jsx - Subscriptions
src/pages/Subscriptions.jsx - Admin page
src/pages/AdminPage.jsx - Admin panel
src/pages/AdminPanel.jsx
Data and integrations
- API client
src/lib/api.js - Supabase client
src/supabaseClient.js - Supabase service
- HTTP API
- Library route
src/backend/routes/library.js
Other components
- Learner
Connections 20
- Learner → Route and access: opens
README.md - Route and access → Landing page: routes to
src/App.jsx - Route and access → Sign-in: routes to
src/App.jsx - Route and access → OAuth callback: routes to
src/App.jsx - Route and access → Learner dashboard: protects
src/App.jsx - Route and access → Quizzes: protects
src/App.jsx - Route and access → Flashcards: protects
src/App.jsx - Route and access → Digital library: gates access
src/App.jsx - Route and access → Courses: gates access
src/App.jsx - Route and access → Subscriptions: gates access
src/App.jsx - Route and access → Admin page: admin routes
src/App.jsx - Route and access → Admin panel: admin routes
src/App.jsx - Sign-in → Supabase client: authenticates
src/pages/Auth.jsx - OAuth callback → Supabase client: sets session
src/pages/AuthCallback.jsx - Supabase client → Supabase service: connects to
src/supabaseClient.js - Learner dashboard → Supabase client: reads session
src/components/Dashboard.jsx - Learner dashboard → API client: fetches profile
src/components/Dashboard.jsx - API client → HTTP API: requests data
src/lib/api.js - Digital library → API client: uses library API
- HTTP API → Library route: may serve library