Blueprint · Commerce

Food ordering with options

Online ordering for one restaurant, where a dish is a set of choices, not a single price. A size sets the price, extras add to it, some extras only come on some sizes, and the total is worked out by the server from what the customer chose, never taken from the browser.

L2–L4

Level range

7

Sprints

36

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

A takeaway ordering site. Customers pick sizes and extras, order the same dish two different ways, and are charged exactly the price they were shown. They follow their order from accepted to ready. The restaurant runs its own menu, and an extra that runs out disappears before anybody picks it.

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

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.

03

A cart that survives

You can add, change and remove items, keep the cart across a logout and login, and show a total that reflects prices as they are now.

04

An order that moves through states

You can move an order through its states, refuse a transition that should not happen, and show the history of how it got where it is.

05

Stock that cannot go negative

You can decrement stock on a sale and prove that a hundred simultaneous orders for ten items produce ten sales and ninety refusals.

06

Notifications people do not mute

You can notify a user when an event concerns them, show an unread count that survives a refresh, and honour a preference that says stop.

07

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

    Getting in

    Somebody can create an account and come back to it, and counter staff accounts cannot be created from the sign-up form.

    4 tasks
    1. Let a customer create an account and be signed in straight away
    2. Keep a customer signed in until next Friday
    3. Let a customer sign out on a borrowed phone and leave nothing behind
    4. Stop anyone creating a counter account from the sign-up form
  2. Sprint 02

    A dish has a shape

    The restaurant describes what it sells, including the choices a dish comes with and what each one does to the price, and nobody else can change it.

    6 tasks
    1. Give counter staff a screen to build the menu
    2. Let a dish come in sizes, where each size sets the price
    3. Let extras add to the price, and limit some to certain sizes
    4. Let the counter mark questions the kitchen needs answered
    5. Show customers the menu the counter wrote
    6. Make the server refuse menu changes from anyone but counter staff
  3. Sprint 03

    Choosing, and what it costs

    A customer builds a dish from its choices, the basket keeps each one exactly as it was built, and the total charged is worked out by the server from the choices, never taken from the browser.

    6 tasks
    1. Make the price follow every choice on the dish screen
    2. Refuse to add a dish while a required question is unanswered
    3. Keep the same dish chosen two ways as two basket lines
    4. Keep a customer's basket for a week across devices
    5. Work out the order total on the server, never from the browser
    6. Tell the customer when a price changed while it sat in the basket
  4. Sprint 04

    The ticket the kitchen cooks from

    An order is a record of exactly what was chosen and what it cost, it moves from accepted to ready, and it still says the same thing next month.

    5 tasks
    1. Show counter staff tonight's orders with every choice spelled out
    2. Record on each order exactly what was chosen and what it cost
    3. Move orders forward only, and record who moved them and when
    4. Let a customer follow their own orders and nobody else's
    5. Let counter staff stop an order and customers cancel before cooking
  5. Sprint 05

    No halloumi tonight

    A choice can run out while the dish it belongs to does not, and nobody is sold a choice the kitchen has not got.

    5 tasks
    1. Let counter staff turn a choice off for the night
    2. Mark a dish off tonight when its required choice has run out
    3. Let counter staff set portions left and count them down
    4. Prove that twenty orders cannot take more than six portions
    5. Show which basket lines hold a choice that has run out
  6. Sprint 06

    Telling them

    A customer hears about their own order without keeping a page open, and is never told something that has stopped being true.

    5 tasks
    1. Send the customer a receipt that lists what they chose
    2. Tell the customer the moment their order is ready
    3. Work out each message when it is sent, not when it is arranged
    4. Tell the customer when the kitchen stops their order
    5. Show counter staff new orders as they arrive
  7. Sprint 07

    Open for business

    The restaurant is on the internet at its own address, taking real orders while the laptop it was built on is shut.

    5 tasks
    1. Put the site on a host so a stranger can order without you
    2. Read every setting the site needs from its environment
    3. Send order emails that reach real inboxes
    4. Serve the site at its own address over a secure connection
    5. Make a bad release quick to undo on a Friday night
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 the one claim you must be able to prove.

How a restaurant actually prices a dish

Restaurant knowledge you may not have: sizes, extras, required questions, allergens, and what a menu price includes.

More commerce 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 food ordering with options.

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

Start today, for free