Mentr
An exam-prep platform for medical-school applicants in Pakistan. Courses, timed mock tests with live leaderboards, and a store built into enrollment.

The problem
Pakistan's medical entrance exam decides admission for tens of thousands of students every year. The digital options they had were slow, gave no real-time feedback, and had no simple way to actually buy a course.
Mentr needed to load quickly on the cheap phones most students use, run timed mock tests under real exam pressure, and take someone from the homepage to enrolled in a couple of minutes.
The approach
I built the platform end to end. Next.js renders pages on the server so the first view arrives fast, even on 3G. PostgreSQL holds the relational core, and Redis keeps sessions, question pools and leaderboards off the database's hot path.
The mock-test engine was the interesting part: many students submit at once at peak times, and rankings must update across regions and subjects. Redis holds live attempt state and the leaderboards; Postgres remains the source of truth for finished attempts.
On the commerce side, buying a course is enrolling — there's no separate checkout to drop out of.
Key decisions
What I learned
The biggest speed-up wasn't a clever query — it was being strict about what never needs to touch the database. Cache-first design beat every optimisation I tried later.
Building across the whole stack means feeling every decision twice: once when you make it and again when you run it. It made me choose boring, proven tools on purpose.
Contact
Tell me what you're building.
A Figma link, a rough brief or a repo is enough. You'll hear back within a working day.
Click to copy · or open your mail app