How I built it
- My role
- Full-stack development
- Context
- Professional work
The problem
[01]A national reading contest involves schools across the whole country. Registrations, reading sheets, validations and rankings had to move between students, teachers, schools, provinces, regions and the national team, and nobody had one reliable picture of who was taking part or how far they had got.
What I built
[02]One platform with a place for everyone. Students register and write their reading sheets, teachers review them, and supervisors at school, provincial, regional and national level see only their own scope, approve, nominate and export. Statistics roll up through the whole hierarchy, so the national team can follow an edition live, region by region.
Key decisions
[03]Access as a tree
Admins, national, regional and provincial coordinators, school supervisors and directors, juries on four levels, and students. Schools belong to provinces and provinces to regions, and every query is scoped so each person sees only what sits below them.
A dashboard 15 times faster
Eight KPIs and their charts over 800,000 students and 50,000 reading sheets took more than 30 seconds through Prisma. Caching per user didn't help, since every scope is different. Moving those statistics to native MongoDB aggregation pipelines brought them down to one or two seconds.
Three languages, one right to left
French, English and Arabic across the three apps, with the whole interface mirrored in Arabic.
The result
- 820k+Students registered
- 2,000+Schools taking part
- 5Supervisor levels

