Barmagy
Learning platform
Barmagy is a full-stack, Arabic-first (RTL) online courses platform with student, teacher and admin roles. Admins manage the content, teachers review it, and students move through a gated learning path. It includes enrollment by activation code or online payment, quizzes that unlock progress, progress tracking, a points ledger, a built-in code editor, DRM-protected video, real-time conversations, and a REST API that a future mobile app can reuse.

The problem
The new programming curriculum for Egyptian high-school students needed an Arabic-first platform that actually teaches, not just a video library. Students skip videos and guess their way through quizzes, videos leak and accounts get shared, and sales happen through activation codes at bookstores and tutoring centers as well as online. Parents want to follow their children, and teachers need to see their students and grade them without touching the content itself.
The solution
Barmagy is a Laravel API with an Arabic-first React SPA, using Sanctum token auth so the same API can serve a mobile app later. Every lesson follows an explicit state machine (locked, available, video watched, quiz passed), the next lesson unlocks only on a pass, and all grading happens server-side so scores cannot be forged. Videos play from short-lived signed links with a moving watermark carrying the student’s name and number, and "watched" is earned from real playback, not a button. Students enroll with an activation code, for free, from their wallet, or online through Paymob. Points live in an append-only ledger, every tunable number is a dashboard setting rather than code, and teachers are read-and-grade only, enforced on the server. Real-time chat runs on Reverb.
Use cases
Guest
- Browse the catalog and course outlines
- Book a callback from the landing page
- Register, log in, and reset their password
Student
- Watch a free preview lesson and take its quiz
- Enroll with an activation code, for free, from the wallet, or online
- Watch lessons and download attachments
- Take the lesson quiz to unlock the next one
- Solve coding labs
- Take timed exams
- View live sessions
- Manage and top up their wallet
- Request an activation code or a wallet top-up
- Chat with the teacher
- View points and progress reports
- Review a completed course
Teacher
- View their own courses and content
- Track their students and attempts
- View stats and commissions
- Grade essay answers
- Manage and grade exams
- Schedule live sessions
- Chat with students
Guardian
- Log in with phone number and PIN
- View their children’s quiz, lab, and exam reports
- Change their PIN
Platform Admin
- Manage courses, sections, and lessons
- Upload videos, attachments, and quizzes
- Manage labs and tracks
- Manage teachers, students, and admins
- Generate activation and promo codes
- Handle student requests
- Configure platform and per-course settings
- Manage announcements, pages, and contact info
- Moderate reviews
- View the revenue dashboard and leads
- Regenerate a guardian PIN
Diagrams
System architecture
Enrollment methods
Lesson progress
Activation code redemption
Online payment (Paymob)
Timed exam
Real-time chat
Entity relationship diagram
Built with
Laravel, PHP, React, TypeScript, Tailwind CSS, Vite, React Query, React Router, i18next, Laravel Sanctum, REST API, Laravel Echo, Pusher, CodeMirror, VdoCipher, Vitest