How ducvlm/1_ltw_cuoiky works
QuizMaster is a React frontend for role-based online multiple-choice exams. The visible user flow is home → register or log in → role-specific area; login/register call an API, while protected routes check the locally stored token and role. The admin dashboard supports account and system management, and the home page describes question banking, exam organization, and grading. Teacher and student workspaces are currently placeholders, so their described capabilities are not represented as implemented flows. The README is empty, and unsampled modules are not inferred beyond documented home-page capabilities.
Main entry points: App.js Route dispatcher · AdminDashboard.jsx Admin dashboard · Home.jsx Home and features · axiosClient.js Authenticated API client
Components 20
Routing and shell
- Route dispatcher
cuoiky/src/App.js - Role-aware layout
cuoiky/src/components/Layout.jsx - Home and features
cuoiky/src/pages/Home.jsx - Application bootstrap
cuoiky/src/index.js
Account access
- Registration
cuoiky/src/pages/Register.jsx - Login
cuoiky/src/pages/Login.jsx - Role and token guard
cuoiky/src/components/ProtectedRoute.jsx - Authenticated API client
cuoiky/src/api/axiosClient.js
Administration
- Admin dashboard
cuoiky/src/pages/AdminDashboard.jsx
Exam experience
- Teacher workspace placeholder
cuoiky/src/App.js - Exam workspace placeholder
cuoiky/src/App.js - Question bank
cuoiky/src/pages/Home.jsx - Exam organization
cuoiky/src/pages/Home.jsx - Submission and grading
cuoiky/src/pages/Home.jsx
Shared interface
- Confirmation modal
cuoiky/src/components/ui/ConfirmModal.jsx - Loading skeleton
cuoiky/src/components/ui/Skeleton.jsx - Toast notifications
cuoiky/src/components/ui/Toast.jsx - Web vitals reporting
cuoiky/src/reportWebVitals.js
Other components
- Visitor / user
- Backend API
Connections 23
- Visitor / user → Route dispatcher: opens routes
cuoiky/src/App.js - Route dispatcher → Role-aware layout: wraps routes
cuoiky/src/App.js - Route dispatcher → Home and features: routes to
cuoiky/src/App.js - Route dispatcher → Login: routes to
cuoiky/src/App.js - Route dispatcher → Registration: routes to
cuoiky/src/App.js - Route dispatcher → Role and token guard: guards areas
cuoiky/src/App.js - Route dispatcher → Admin dashboard: routes to
cuoiky/src/App.js - Route dispatcher → Teacher workspace placeholder: routes to
cuoiky/src/App.js - Route dispatcher → Exam workspace placeholder: routes to
cuoiky/src/App.js - Login → Authenticated API client: posts credentials
cuoiky/src/pages/Login.jsx - Registration → Authenticated API client: posts registration
cuoiky/src/pages/Register.jsx - Admin dashboard → Authenticated API client: requests admin data
cuoiky/src/pages/AdminDashboard.jsx - Authenticated API client → Backend API: sends API requests
cuoiky/src/api/axiosClient.js - Role and token guard → Login: redirects unauthenticated
cuoiky/src/components/ProtectedRoute.jsx - Role-aware layout → Home and features: renders outlet
cuoiky/src/components/Layout.jsx - Home and features → Question bank: describes capability
cuoiky/src/pages/Home.jsx - Home and features → Exam organization: describes capability
cuoiky/src/pages/Home.jsx - Home and features → Submission and grading: describes capability
cuoiky/src/pages/Home.jsx - Admin dashboard → Loading skeleton: renders loading state
cuoiky/src/pages/AdminDashboard.jsx - Admin dashboard → Confirmation modal: uses confirmation UI
cuoiky/src/pages/AdminDashboard.jsx - Admin dashboard → Toast notifications: uses notifications
cuoiky/src/pages/AdminDashboard.jsx - Application bootstrap → Route dispatcher: renders application
cuoiky/src/index.js - Application bootstrap → Web vitals reporting: invokes reporting
cuoiky/src/index.js