Blueprint · Education

Video lesson library

A library of video lessons for one school: tutors put up recordings far too big to go through a web request, an upload that loses its connection is picked up rather than started again, and the videos themselves refuse anybody the course has not enrolled.

L3–L5

Level range

8

Sprints

44

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

A video lesson library. Tutors upload a file far too big for a normal web request, lose the connection halfway, and finish it the next morning without starting again. Enrolled students watch the moment it is ready. Anybody not enrolled is refused, even holding the video's own address.

What you’ll learn

A skill in every sprint

You show you have it in a pull request your team reviews, then explain it in a walkthrough.

01

Authentication

You can register and sign in a user, keep a request authenticated without asking for the password again, and explain where the credential lives in the browser and why there rather than somewhere else.

02

Enrolling on a course

You can enrol a learner, refuse one who does not qualify with a reason they can act on, and show that a full course cannot be over-enrolled.

03

Uploading video

You can accept a large upload, process it out of the request cycle, and show the uploader its state until it is ready.

04

Content not everyone can watch

You can gate content behind an entitlement and show that the underlying file cannot be fetched by somebody without one.

05

Background jobs

You can hand work to a worker, tell the user it is in progress, and show the result when it lands — and say what happens to that work if the process dies halfway.

06

Going live

Somebody who has never met you can open a URL and use the product — and you can say what is different about the copy running there, where its secrets come from, and what you do when a release turns out to be wrong.

The roadmap

8 sprints, 44 tasks

Every sprint has a goal and a set of tasks. Open a sprint to see the tasks you will pick up.

  1. Sprint 01

    Getting in

    A person can create an account, stay signed in through a long upload, reset a forgotten password, and only an administrator can make someone a tutor.

    6 tasks
    1. Let a person register and be signed in straight away
    2. Keep a person signed in for 30 days, renewed while they use it
    3. Let a person sign out properly on a shared computer
    4. Let only an administrator make someone a tutor
    5. Send tutors and learners to their own home pages
    6. Let a person reset a forgotten password by email
  2. Sprint 02

    The roll

    A tutor runs a course, accepts the learners who ask to join, and the product can say in one place whether a person is enrolled on a course right now.

    5 tasks
    1. Let a tutor create, describe and withdraw a course
    2. Let a learner find a course and ask to join it
    3. Show a tutor the roll, with requests to accept or decline
    4. Give every enrolment a start date and an end date
    5. Let a learner whose enrolment ended join the same course again
  3. Sprint 03

    The two gigabyte lesson

    A tutor uploads a lesson of 1 GB or more straight to storage, the rest of the product stays fast for everyone while it happens, and a lesson only claims a file once the file is really there.

    5 tasks
    1. Let a tutor add a lesson to a course before it has a video
    2. Upload a 1 GB file straight to storage without slowing the product
    3. Show the tutor upload progress, and let them cancel
    4. Mark a lesson as having a video only after storage confirms it
    5. Refuse files that are too big or plainly the wrong type before uploading
  4. Sprint 04

    Dropped at ninety percent

    An upload interrupted at 90% carries on from 90%, after a network drop or the next day after the laptop was closed, and the finished file is exactly the one the tutor chose.

    5 tasks
    1. Carry on an upload from where it stopped after the connection drops
    2. Let a tutor continue an upload the next day after closing the laptop
    3. Let a tutor see their unfinished uploads and cancel them
    4. Make a resumed upload produce exactly the file the tutor chose
    5. Write a repeatable test that cuts the connection mid-upload
  5. Sprint 05

    Ready is not uploaded

    A finished upload is converted for the web on its own, the lesson shows which state it is in, and once it says Ready an enrolled learner can play it and skip around in it.

    5 tasks
    1. Prepare a watchable copy of each upload without anyone waiting
    2. Show which of the five states each lesson is in
    3. Let an enrolled learner play a ready lesson and skip around in it
    4. Mark a lesson as failed, with a reason, when its file cannot be prepared
    5. Show learners which lessons are coming soon, without a broken player
  6. Sprint 06

    A link is not a permission

    The video file itself refuses anyone who is not enrolled, using signed links that expire after 5 minutes and are renewed during playback, with one rule in one place deciding who may watch.

    6 tasks
    1. Refuse the video's own address to anyone who is not enrolled
    2. Stop access when an enrolment ends, not when the session ends
    3. Make video links expire after 5 minutes and renew during playback
    4. Explain every refusal and give a next step
    5. Decide who may watch what in one place
    6. Let a tutor take a lesson down so it stops playing
  7. Sprint 07

    Work nobody is watching

    The library keeps itself in order with nobody watching: failures are visible and retried, nothing is done twice, abandoned files are cleared, and tutors are emailed when a lesson is ready.

    6 tasks
    1. Show failed and stuck lessons in the product, not only in logs
    2. Make preparing a lesson twice produce one of everything
    3. Retry failed preparation 3 times, then mark the lesson as failed
    4. Clear away uploads nobody has touched for 7 days
    5. Remove a lesson's files from storage when it is deleted
    6. Email the tutor when a lesson is ready or has failed
  8. Sprint 08

    Put it where the class is

    The library is live on the internet, and strangers upload a lesson, watch it on a phone, and are refused when not enrolled, with nobody from the project helping.

    6 tasks
    1. Put the library live on the internet with its worker running
    2. Keep settings and secrets out of the repository
    3. Prove uploading, preparing, watching and refusing on the live copy
    4. Make a bad release possible to undo within an hour
    5. Record failures where a person will see them
    6. Watch strangers upload, watch and be refused on the live copy
The reading

Read before you build

Senior engineers read the docs before they touch the code. Every Blueprint comes with short documents on the product and its world, the kind a team hands a new hire. Read them well and you ask sharper questions and walk into every review prepared.

What you are building

The product, the people who use it, the person it is built against, the parts that make it hard, and what is not included.

How video gets from a tutor's laptop to a learner's phone

Background you may not have: what is inside a video file, why the file you are given is not the file you serve, the options for converting it, how browsers fetch video, and the words used in this road map.

More education Blueprints

More to build

Not the one for you?

Every Blueprint is planned the same way, across health, shopping, money, education and more.

Browse all Blueprints
Ready?

Build video lesson library.

Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.

Start today, for free