How uswausman/taleemgurupk works
Taleem Guru is an education platform for Pakistani students, combining curriculum browsing, practice and exams, study resources, and student accounts with staff content administration. The principal workflow runs from the application’s view and route coordinator into learning features, which load content through the API layer and persist records in PostgreSQL; authentication is handled separately through Supabase. The server also exposes document, search, analytics, and site-management capabilities. Several subsystem links are based on SOURCE INDEX references rather than inspected call sites, so only directly supported relationships are shown.
Main entry points: App.tsx View coordinator · index.ts PostgreSQL connection · serverApp.ts HTTP server · documentStorage.ts Document storage
Components 23
Learning experience
- View coordinator
src/App.tsx - Curriculum browsing
src/components - Quizzes and exams
src/components - Study resources
src/components - Student dashboard
src/components/StudentDashboard.tsx - Academic hierarchy
src/data/educationalHierarchy.ts - Exam reference data
src/data/mockData.ts
Identity and settings
- Account interface
src/components/StudentAuthModal.tsx - Supabase auth service
src/lib/supabaseService.ts - Supabase
- Site settings
src/context/SiteSettingsContext.tsx
Server capabilities
- API client
src/lib/api.ts - HTTP server
src/serverApp.ts - Document storage
src/server/documentStorage.ts - Document branding
src/server/documentBranding.ts - Document security
src/server/documentSecurity.ts - Unified search
src/server/unifiedSearch.ts
Data layer
- Database schema
src/db/schema.ts - PostgreSQL connection
src/db/index.ts - Learning content data
src/db/content.ts - Exam data
src/db/exams.ts - User data
src/db/users.ts
Other components
- Student
Connections 25
- Student → View coordinator: uses
src/App.tsx - View coordinator → Curriculum browsing: routes to
src/App.tsx - View coordinator → Quizzes and exams: routes to
src/App.tsx - View coordinator → Study resources: routes to
src/App.tsx - View coordinator → Student dashboard: routes to
src/App.tsx - View coordinator → Academic hierarchy: loads
src/App.tsx - View coordinator → Exam reference data: uses
src/App.tsx - View coordinator → API client: fetches content
src/App.tsx - View coordinator → Supabase auth service: saves results
src/App.tsx - Account interface → Supabase auth service: uses
src/components/StudentAuthModal.tsx - Supabase auth service → Supabase: authenticates
src/lib/supabaseService.ts - Supabase auth service → API client: syncs profile
src/lib/supabaseService.ts - Site settings → API client: fetches settings
src/context/SiteSettingsContext.tsx - API client → HTTP server: requests
- HTTP server → Document storage: uses
src/serverApp.ts - HTTP server → Unified search: uses
src/serverApp.ts - Document storage → Document branding: brands PDFs
src/server/documentStorage.ts - Document storage → Document security: sanitizes downloads
src/server/documentStorage.ts - HTTP server → PostgreSQL connection: uses
src/serverApp.ts - Document storage → PostgreSQL connection: reads and writes
src/server/documentStorage.ts - Unified search → PostgreSQL connection: queries
src/server/unifiedSearch.ts - Learning content data → PostgreSQL connection: queries
src/db/content.ts - User data → PostgreSQL connection: queries
src/db/users.ts - PostgreSQL connection → Database schema: uses schema
src/db/index.ts - Exam data → PostgreSQL connection: uses