TL;DR: Another developer and I built a learning platform that is the backend for POCUS Focused and has about 4,000 learners. I worked on both the frontend and the backend. We built a course builder, quizzes, media uploads and flashcards, integrated HubSpot, and migrated courses from LearnWorlds.

My role

Another developer and I built the whole platform, and I worked on both the frontend and the backend. We built it as the backend for POCUS Focused.

Features

We built a drag-and-drop course builder, sign-in and media uploads. In quizzes, you can use multiple-choice, multi-select, true/false and free-response questions. We schedule flashcards with FSRS spaced repetition.

Architecture

We built separate React apps for course teams and learners, with one Flask API for both. We use Temporal for multi-step and scheduled jobs, and Supabase for the Postgres database, sign-in and file storage. We also connected services including Stripe for payments and HubSpot for customer records.

Challenges

Multi-step actions

For a single action, we may need to change the database, send email and call outside services, and we can hit a failure at any of those steps. We run these actions as Temporal workflows. For simple reads and updates, we go straight to the database to avoid the extra complexity.

Media uploads

We upload files straight to storage instead of passing them through the API, and users can resume a video upload after an interruption. For images and videos, we use a storage notification to have the API link the file. We check for an existing record so we don't create a duplicate after a repeated notification.

File processing

We can spend a long time converting videos and unpacking interactive course packages, so we do that work in background workflows. Users don't have to wait for it.

HubSpot sync

We can't count on every immediate sync to HubSpot succeeding. We try to sync changes right away and use a daily job to catch up on recorded activity. We can safely run a sync again.

LearnWorlds migration

We had to move lessons, media, quizzes and interactive packages from LearnWorlds. We built a tool and used Playwright to collect each course into a bundle for review, then uploaded it through the platform's API. We saved progress so we could resume an interrupted upload, and we continued a bulk run when one course failed.

Result

The platform is live with about 4,000 learners.