Blueprint · Logistics

Doorstep delivery tracking

A customer watches the rider bringing their parcel move towards them on a map. The rider's phone reports where it is as they drive. The app works out when the rider has arrived without being told, and a photo at the door shows where the parcel was left.

L3–L5

Level range

8

Sprints

39

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

Live parcel tracking for a small delivery firm. Customers watch the rider bringing their parcel move across a map without refreshing the page. When the rider's phone loses signal and then catches up, the pin never jumps backwards. The app notices when the rider has arrived without anyone pressing a button, and a photo of the doorstep appears on the customer's page. Nobody can watch another customer's rider, or their own rider once the parcel is delivered.

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

Assigning jobs to drivers

You can assign a job to a driver, prevent the same job being assigned twice, and show a driver only their own work.

03

Tracking a delivery

You can record location updates against a shipment and show a customer its current state and history without them refreshing.

04

Realtime updates

You can push a change from the server to an open page and have a second browser see it — and say what happens to a client that was disconnected while it changed.

05

Proof of delivery

You can capture proof at the point of delivery, store it against the shipment, and produce it later in a dispute.

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, 39 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

    Signing on for a shift

    A customer can create an account, the firm creates rider accounts nobody can make for themselves, a rider's phone stays signed in for a whole shift, and the depot can sign a lost phone out within a minute.

    4 tasks
    1. Let customers register and come back to the same account
    2. Keep a rider signed in for a whole shift
    3. Create rider and depot accounts that nobody can give themselves
    4. Let the depot sign out a rider's phone from another device
  2. Sprint 02

    A parcel with a name on it

    A parcel belongs to one customer and exactly one rider, even when two dispatchers assign it at the same moment, and the rider sees their round in driving order.

    5 tasks
    1. Let dispatchers enter a parcel for a customer at an address
    2. Give each parcel to exactly one rider, even when two dispatchers try at once
    3. Show riders their own round in driving order
    4. Let riders start and finish each delivery
    5. Give customers a page for each parcel that says where it is up to
  3. Sprint 03

    A phone that says where it is

    A rider's phone reports where it is during each delivery, every position is kept with the time it was taken, and the app uses no more battery, mobile data or storage than it needs.

    5 tasks
    1. Report the rider's position while a delivery is on its way
    2. Choose how often the phone reports, and write down the numbers behind it
    3. Report less often while the rider is standing still
    4. Stop reporting and refuse positions when no delivery is on its way
    5. Thin a finished delivery's positions to the route that matters
  4. Sprint 04

    Watching it move

    A customer whose parcel is on its way watches the rider move on a map with nobody pressing refresh, and a screen that was locked comes back to where the rider is now.

    5 tasks
    1. Let customers watch the rider move on a map without refreshing
    2. Limit how often each watching screen is updated
    3. Bring a screen that was locked back to where the rider is now
    4. Move the pin smoothly between positions
    5. Tell customers whose parcel is not on its way yet what happens next
  5. Sprint 05

    Four minutes in a tunnel

    A phone that had no mobile data for four minutes sends its saved positions when signal returns, the route comes out in the order it was driven, and the pin never moves backwards.

    5 tasks
    1. Save positions on the phone while it has no signal and send them later
    2. Put the route in the order it was driven, whatever order positions arrive in
    3. Make sure a late position never moves the pin backwards
    4. Store a position that arrives twice only once
    5. Show customers and the depot when a rider's phone has gone quiet
  6. Sprint 06

    At the door

    The app works out that the rider has arrived from where they are, not from a button, and a photo taken at a doorstep with no signal still reaches the customer, with a delivery time that can be trusted.

    5 tasks
    1. Work out that the rider has arrived without anyone pressing a button
    2. Let riders say they have arrived when the app has not noticed
    3. Let riders photograph the doorstep and complete delivery with no signal
    4. Show the depot which deliveries have no photo yet
    5. Show customers the doorstep photo and a delivery time that has been checked
  7. Sprint 07

    Who may watch, and for how long

    A customer can watch only the rider bringing their own parcel, and only while it is on its way, the server enforces this on every route, and old routes are deleted on a schedule.

    5 tasks
    1. Decide in one place who may see a delivery's positions
    2. Make each customer's live connection carry only their own rider
    3. Close the live map the moment the parcel is delivered
    4. Let riders mark a parcel as not delivered, or end their shift, and close the map
    5. Delete old routes on a schedule and write down how long they are kept
  8. Sprint 08

    Out on real roads

    The app is live on the internet at its own address, a customer connected to one server sees a rider reporting to another, and connections survive lost signal and new releases.

    5 tasks
    1. Put the app online so a rider and a customer can use it from two networks
    2. Move every setting and secret off your laptop and into the server's settings
    3. Pass positions between servers so every watcher sees their rider
    4. Reconnect riders and customers by themselves after signal drops
    5. Release a new version during a round with only a short pause
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 three kinds of people who use it, and the three parts that make it harder than a pin on a map.

A position is a fact with a time on it

What a phone really knows about where it is, why every position has two times, and how much a shift of positions weighs.

More logistics 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 doorstep delivery tracking.

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

Start today, for free