How jun28th/ielts-fe works
This is a role-based education management web application. Teachers manage courses, weekly sections, student accounts and a four-skill question bank; students and administrators have separate dashboards, and administrators manage roles and permissions. The visible workflow runs from role-specific pages through browser API clients and Next.js API routes to a configured backend. Source excerpts show course and student management and access control; other major routes and features are retained from the tree, but their internal behavior is not inferred. No backend datastore is shown.
Main entry points: courses-client.ts Course API client · access-control/page.tsx Access control · students/page.tsx Student management · http.ts HTTP client
Components 25
Identity
- Sign-in page
app/[locale]/auth/sign-in/page.tsx - Authentication state
contexts/auth-context.tsx - Authentication client
lib/api/auth-client.ts - Authentication routes
app/api/auth/sign-in/route.ts
Teaching and courses
- Teacher workspace
app/[locale]/teacher/courses/page.tsx - Student dashboard
app/[locale]/student/dashboard/page.tsx - Course views
components/Course - Course creation
components/Modal/CreateCourseModal.tsx - Student management
app/[locale]/teacher/students/page.tsx - Student forms
components/Modal/CreateStudentModal.tsx - Question bank
app/[locale]/teacher/question-bank
Administration
- Access control
app/[locale]/admin/access-control/page.tsx
Application services
- Course API client
lib/api/courses-client.ts - Course routes
app/api/courses - Course data types
types/course-types.ts - User API client
lib/api/user-client.ts - Student routes
app/api/users/students - Writing question client
lib/api/writing-questions-client.ts - Writing question routes
app/api/writing-questions/route.ts - Role API client
lib/api/roles-client.ts - Permission API client
lib/api/permissions-client.ts - Role routes
app/api/roles - Permission routes
app/api/permissions/route.ts - HTTP client
lib/api/http.ts
Other components
- Backend API
Connections 25
- Teacher workspace → Course API client: loads courses
app/[locale]/teacher/courses/page.tsx - Teacher workspace → Course views: renders cards
app/[locale]/teacher/courses/page.tsx - Teacher workspace → Course creation: opens form
app/[locale]/teacher/courses/page.tsx - Course creation → Course API client: creates course
components/Modal/CreateCourseModal.tsx - Course API client → HTTP client: uses
lib/api/courses-client.ts - Course API client → Course data types: uses types
lib/api/courses-client.ts - Course API client → Course routes: requests
lib/api/courses-client.ts - Student management → User API client: loads and deletes
app/[locale]/teacher/students/page.tsx - Student management → Student forms: renders forms
app/[locale]/teacher/students/page.tsx - Student management → Student management: debounces search
app/[locale]/teacher/students/page.tsx - User API client → HTTP client: uses
lib/api/user-client.ts - User API client → Student routes: requests
- Question bank → Writing question client: manages writing questions
- Writing question client → HTTP client: uses
lib/api/writing-questions-client.ts - Writing question routes → Backend API: forwards requests
app/api/writing-questions/route.ts - Access control → Role API client: loads and updates roles
app/[locale]/admin/access-control/page.tsx - Access control → Permission API client: loads permissions
app/[locale]/admin/access-control/page.tsx - Access control → Role routes: requests roles
- Access control → Permission routes: requests permissions
- Sign-in page → Authentication state: uses auth state
app/[locale]/auth/sign-in/page.tsx - Sign-in page → Authentication client: submits credentials
app/[locale]/auth/sign-in/page.tsx - Authentication routes → Backend API: forwards requests
- Course routes → Backend API: forwards requests
app/api/courses/route.ts - Student routes → Backend API: forwards requests
- HTTP client → Backend API: sends requests