-
Step 1 of 7Request
One app, three faces
Requests pass Cloudflare and nginx to one CodeIgniter 3 app on PHP 8.2. It serves the public site, the student area under /my/ (today, courses, roadmap, notes, subscriptions) and the admin panel.
-
Step 2 of 7PWA
Installable and offline-friendly
A service worker makes the site installable. Pages always come from the network, with an offline page as fallback. Versioned assets are served from cache, and video, PDFs and POSTs are never cached.
-
Step 3 of 7Lessons
Lessons stream from vidinfra
Lesson pages embed the vidinfra player. Old stream URLs are rewritten to the newer player, which reports playback through a postMessage bridge so the site can track what was watched.
-
Step 4 of 7Data
Everything else in MySQL
Enrolments, bundles, payments, watch maps and devices live in MySQL 8. Each schema change ships as a dated SQL file in the repo, so every environment can be brought up to date the same way.
-
Step 5 of 7SSO
One click into the mock tests
/mock-test sends a signed-in student to cd.ieltsbd.co with a link signed by HMAC-SHA256 over email, time and a random nonce. Logged-out students go to the login page first and come back afterwards.
-
Step 6 of 7Admin
A desk that can only enrol
Front-desk staff get an admin account whose only permission is enrolment. They look a student up by email, then give a subscription, a batch or both. Batches run 6 months from their first video, plus a 7-day grace period.
-
Step 7 of 7Recap
How it ships
Locally it runs in Docker (nginx, PHP 8.2-FPM, MySQL 8). In production the web root is the git working tree, so a deploy is a fast-forward git pull. Secrets live in files git ignores.
Tip: the ← and → keys work too.