// tech stack
// the challenge
The education center kept its data scattered across Excel sheets and chat threads: student lists, payments, class schedules and teacher reports were not connected to each other. With four different roles (administrator, teacher, methodist, controller) working at the same time, the system had to show each of them only their own sections, filter large tables quickly and keep sessions alive without interruption.
// the solution
I built a single-page application on React and TypeScript. Axios interceptors attach the access token automatically, refresh the session through the refresh token on a 401 response and queue requests that arrive during the refresh. The sidebar and routes are filtered by role and permissions. Data is cached with TanStack Query and state lives in Zustand. A consistent design system was built on top of Ant Design components with Tailwind; statistics use ApexCharts, lesson content uses TipTap, math tests use MathLive/KaTeX and video lessons use HLS.
// measurable impact
Every operation moved into one panel: the flow from student enrollment to payment and rating now runs without manual copying. Role-based access protects data from other departments, and the tables and filters stay fast with large datasets. Day-to-day reporting takes less time and manual entry errors have dropped.
- Timeline
- December 2025 — February 2026
- Team
- Frontend team + backend & design
- Role
- Frontend Developer — architecture, authentication and core modules
// key highlights
- ◆Automatic JWT access/refresh authentication with a request queue on 401
- ◆Sidebar and protected routes filtered by role and permissions (Super Admin, Teacher, Methodist, Controller)
- ◆Full CRUD flows for students, teachers, courses, lessons and the extra-lesson calendar
- ◆Filterable tables for payments, promo codes and ratings plus ApexCharts statistics
- ◆Test module with math formulas (MathLive/KaTeX), a rich-text editor (TipTap) and assignments
- ◆HLS video player for lessons and real-time messaging over Socket.IO
// implementation sample
if (error.response?.status === 401 && !originalRequest._retry) {
if (this.isRefreshing) {
return new Promise((resolve, reject) => {
this.failedQueue.push({ resolve, reject });
});
}
originalRequest._retry = true;
this.isRefreshing = true;
const newToken = await authService.refreshAccessToken();
this.processQueue(null, newToken);
}