How kartik192008/okschool.webstie works
OK School is a study-material and mock-exam platform, with administration, search, purchase history, and an Amazon product area. The main user flow is entering the routed web app, choosing a mock test, reviewing instructions, taking a timed exam, and viewing results; exam submissions are sent to the API. The server mounts separate route modules for the broader product capabilities. Source excerpts establish the app routing and exam behavior, but most page and route implementations were not sampled, so their internal dependencies are not inferred.
Main entry points: index.ts Route registry · mock-tests.ts Mock tests API · app.ts HTTP app · documents.ts Documents API
Components 30
Web application
- App router
- Navigation
- Route protection
Mock exams
- Mock generator
- Mock test list
- Exam session
- Exam instructions
- Exam timer
- Exam results
- My mocks
- Test history
Content and commerce
- Home
- Study materials
- Search results
- Amazon store
- Purchase history
Administration
- Admin dashboard
API server
- HTTP app
artifacts/api-server/src/app.ts - Route registry
artifacts/api-server/src/routes/index.ts - Documents API
artifacts/api-server/src/routes/documents.ts - Mock tests API
artifacts/api-server/src/routes/mock-tests.ts - Payments API
- Products API
artifacts/api-server/src/routes/amazon-products.ts - Admin API
artifacts/api-server/src/routes/admin.ts - Search API
artifacts/api-server/src/routes/search.ts - Visits API
- Health API
artifacts/api-server/src/routes/health.ts - History API
- Mock-test schema
lib/db/src/schema/mock_tests.ts
Other components
- Student
Connections 28
- Student → App router: uses
- App router → Navigation: renders
- App router → Route protection: guards routes
- App router → Home: routes to
- App router → Study materials: routes to
- App router → Mock test list: routes to
- App router → Exam session: routes to
- App router → Test history: routes to
- App router → Purchase history: routes to
- App router → Amazon store: routes to
- App router → Search results: routes to
- App router → Mock generator: routes to
- App router → My mocks: routes to
- App router → Admin dashboard: routes to
- Exam session → Exam timer: uses
- Exam session → Exam instructions: renders
- Exam session → Exam results: renders
- Exam session → Mock tests API: posts results
- HTTP app → Route registry: mounts
artifacts/api-server/src/app.ts - Route registry → Health API: registers
- Route registry → Documents API: registers
- Route registry → Products API: registers
- Route registry → Mock tests API: registers
- Route registry → Admin API: registers
- Route registry → Search API: registers
- Route registry → Visits API: registers
- Route registry → Payments API: registers
- Route registry → History API: registers