Skip to content
All work
Case study · 01

CAP'Lecture

The platform behind Morocco's national French reading contest, from a student's first book to the national final.

Visit caplecture.maLive · client project
Status
Live
Context
Professional work
My role
Full-stack development
Category
Education
Year
2026
caplecture.ma
CAP'Lecture's home for supervisors: a welcome banner with zellige patterns, then edition statistics including 2,021 schools with registered students, 821,342 students, and reading sheets in progress, validated and approved.

CAP'Lecture is a national initiative of Morocco's Ministry of National Education, Preschool and Sports, with the Institut français du Maroc.

Built for the Ministry of National Education and the Institut français du Maroc, CAP'Lecture lets hundreds of thousands of students build reading portfolios, while teachers and supervisors at every level, from the classroom to the national team, follow them through each selection round.

The story

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]
  1. 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.

  2. 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.

  3. 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
Screens

The real product

Screenshots of the live product, taken with demo data. Open any of them full size.

  • [01]Every student in an edition, filterable down to a single school. Names are hidden here.

  • [02]A student's profile and reading passports. Personal details are hidden here.

  • [03]Participation by region, school level, gender and sector, compared across editions.

  • [04]A reading sheet: book, characters, setting and summary, structured for young readers.

  • [05]The public site, in French, Arabic and English, where students and schools sign in.

Features

What it does

I built a platform at national scale for a public institution: deep role hierarchies, large datasets, live statistics and three languages.

[01]

A role for every level

Students, teachers, and supervisors for each school, province, region and the nation. Every screen and every export is scoped to the user's place in the hierarchy.

[02]

Guided reading sheets

Structured sheets adapted to each category, from drawings for the youngest to full reading sheets in high school, with drafts, validation and approval.

[03]

Reading passports

Progress students can see: red, green and gold passports unlock as their validated reading sheets add up.

[04]

Live statistics

Schools and students registered, participation by region, school level, gender and sector, and reading progress, compared across editions.

[05]

Selection rounds

School, provincial, regional and national rounds, with nominations at each step and exports ready for the juries.

[06]

Three languages

The whole platform in French, Arabic and English, with right-to-left layouts for Arabic.

Built with

The stack

Typed end to end and rendered on the server by default, with the rest chosen for what this product needed.

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • Node.js
  • Express
  • MongoDB
  • Prisma
  • Redis
  • MinIO
  • Socket.IO

Hiring? Let's talk.

Tell me about the role and the team. I reply within one business day.