Blueprint · Logistics

Delivery time slots

Delivery booking for one depot. A customer picks a delivery window that can reach their address. Each window only takes as many deliveries as the vans can do in that time. A window that is full, closed or can no longer be served stops being offered before anyone books it.

L3–L5

Level range

7

Sprints

36

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

Delivery time slot booking for one depot. Customers see the delivery windows that can reach their address and are still open. They take the last place in a window and see it close, and move their delivery to another window and see the first one reopen. If a van goes off the road, they are told their window can no longer take them and where their delivery is now. The depot sees how full every window is.

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

Choosing a delivery window

You can show the windows available for an address, hold the one a customer picks through checkout, and stop offering a window that is full.

03

Roles and permissions

You can give users different roles and have the server refuse what a role may not do — not merely hide the button — and show the refusal working against a request the interface never offered.

04

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

7 sprints, 36 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

    Who you are delivering to

    A customer can create an account, come back to it, and save the address they want things delivered to, and the app tells them which delivery area it is in.

    5 tasks
    1. Let customers create an account and land signed in
    2. Let customers sign back in and stay signed in
    3. Let customers sign out and leave nothing behind
    4. Let customers save an address and see which delivery area it is in
    5. Create depot accounts that nobody can give themselves
  2. Sprint 02

    The windows on offer

    A customer sees the delivery windows that can reach their address, each showing how many places it has left and when it closes for booking.

    5 tasks
    1. Let the depot set which windows it runs each day, and to which areas
    2. Let the depot set how many drops a window can take in each area
    3. Show customers the windows that can reach their address
    4. Hide windows that no van serves in the customer's area
    5. Close each window for booking at its cut-off, on the depot's clock
  3. Sprint 03

    The last place

    A customer books a place in a window, a window with no places left can no longer be booked, and two customers can never both take the last place.

    5 tasks
    1. Let customers book a place in a window
    2. Close a window to new bookings when its last place is taken
    3. Make sure two customers can never both take the last place
    4. Refuse bookings the list would never have offered
    5. Check that each window's count matches the deliveries in it
  4. Sprint 04

    Both sides of the depot

    Depot staff see how full every window is and who is booked into each one, while a customer sees only their own deliveries, and the server enforces both.

    5 tasks
    1. Show depot staff how full every window is
    2. Show depot staff the deliveries inside one window
    3. Show each customer only their own deliveries
    4. Refuse requests for another customer's delivery
    5. Let depot staff book a delivery for a customer who phoned
  5. Sprint 05

    Giving a place back

    A customer or depot staff can move or cancel a delivery, and the place it held goes back on sale while the window is still open.

    5 tasks
    1. Let customers cancel a delivery and put its place back on sale
    2. Let customers move a delivery without ever losing it
    3. Make cancelling the same delivery twice free only one place
    4. Do not put a place back on sale after the window's cut-off
    5. Let depot staff move or cancel a delivery for a customer
  6. Sprint 06

    A van off the road

    When a window can take fewer deliveries than it sold, it stops selling at once, the app suggests who should move and where, a person at the depot approves it, and only the customers who moved are told.

    5 tasks
    1. Stop a window selling as soon as its number of places is lowered
    2. Suggest which deliveries should move, and where they could go
    3. Move deliveries only when depot staff approve the suggestion
    4. Email customers whose delivery was moved, and nobody else
    5. Keep deliveries that cannot be moved on a list until someone deals with them
  7. Sprint 07

    Somewhere a customer can reach

    The app is live on the internet at its own address, every deadline follows the depot's clock, emails really arrive, and a bad release can be undone in minutes.

    6 tasks
    1. Put the app on the internet so a stranger can use it without you
    2. Move every setting and secret out of the code and into the server's settings
    3. Send the moved-delivery email through a real email service
    4. Make the cut-off hold on a server whose clock is not the depot's
    5. Build a front page that explains the app to a stranger
    6. Make a bad release possible to undo in minutes
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 two kinds of people who use it, and why a delivery window is a number of places, not a single booking.

How a delivery day actually works

How a depot's day runs: rounds, drops and cut-offs, and why the number of places in a window is something the depot must be able to change.

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 delivery time slots.

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

Start today, for free