Blueprint · Commerce

Event ticketing with door check-in

Tickets for one event. They sell until the set number of tickets runs out, every ticket has its own code, and the door lets each code in once, even when the signal drops.

L2–L4

Level range

8

Sprints

40

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

A ticket shop and a door scanner. People buy tickets until the event sells out, and each ticket gets its own code, even when somebody else paid for it. At the door, a phone scans the code and says to let the person in, says it was already used if it is scanned again, and keeps working where there is no signal.

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

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.

03

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.

04

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.

05

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.

06

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.

07

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.

08

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

    Accounts, and borrowed phones

    Somebody can create an account, and a phone signed in for one night can be signed out from somewhere else.

    4 tasks
    1. Let a buyer create an account and be signed in straight away
    2. Keep a buyer signed in for a week between visits
    3. Create organiser and doorkeeper accounts that nobody can give themselves
    4. Let an organiser sign out a venue phone from their own screen
  2. Sprint 02

    Putting an event on sale

    An event goes on sale with a set number of tickets, and sells out at exactly that number.

    5 tasks
    1. Let an organiser put an event on sale
    2. Let a buyer find an event and see how many tickets are left
    3. Let a buyer buy up to six tickets at once, all or none
    4. Prove that buyers at the same moment cannot oversell an event
    5. Show buyers who missed out that the event has sold out
  3. Sprint 03

    A code of their own

    Every ticket sold reaches the person who will use it, with a code nobody can guess.

    6 tasks
    1. Give every ticket in a sale its own code
    2. Make ticket codes impossible to guess from other codes
    3. Let a buyer send a ticket to the friend who will use it
    4. Let a ticket open on a phone with no account and no signal
    5. Let an organiser issue free tickets without a sale
    6. Explain what happened when someone opens an old ticket link
  4. Sprint 04

    Working the door

    Somebody on the door scans a code and gets an answer they can act on without reading.

    5 tasks
    1. Let a doorkeeper scan a code and let somebody in
    2. Make the server refuse scans from anyone not working this event
    3. Make the scan answer readable at arm's length in the dark
    4. Let a doorkeeper choose which event and door they are working
    5. Let a doorkeeper find a ticket by name when the phone is dead
  5. Sprint 05

    Once, and only once

    A code lets its holder in exactly once, and two phones scanning it at the same moment produce one admission.

    5 tasks
    1. Refuse a second scan of a code, showing when and where it was used
    2. Allow only the ticket moves that make sense, written in one place
    3. Prove that two phones scanning one code at once admit one person
    4. Let a doorkeeper undo an admission made by mistake
    5. Record every scan, including the refused ones
  6. Sprint 06

    When the signal drops

    The door keeps scanning with no connection, and what it sends afterwards is counted once.

    5 tasks
    1. Keep the door scanning when the phone has no connection
    2. Send scans made offline to the server when the signal returns
    3. Count the same scan arriving twice as one admission, not a refusal
    4. Tell the organiser when one code was let in twice offline
    5. Show the doorkeeper how many scans have not been sent
  7. Sprint 07

    Taking a ticket back

    A ticket taken back stops working at the door, and the organiser watches the count without pressing anything.

    5 tasks
    1. Let an organiser take a ticket back and put it back on sale
    2. Refuse a taken-back ticket at the door with its own message
    3. Bring a door phone up to date before it lets anybody in
    4. Show the organiser a live count of people inside
    5. Settle a take-back and a scan of the same ticket at the same moment
  8. Sprint 08

    Somewhere a stranger can reach

    The product is on the internet at its own address, the door works at the venue, and a bad release can be undone while people are queueing.

    5 tasks
    1. Put the product on a host so a stranger can buy a ticket
    2. Read every setting the product needs from where it runs
    3. Send ticket emails that reach real inboxes
    4. Test the door on a real phone at the venue, camera included
    5. Make a bad release quick to undo while people are queueing
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

One event, two products that share a database, and the one promise the whole thing rests on.

The ninety minutes at the door

Knowledge you may not have: how fast a queue moves, venue wifi, volunteers, free tickets, and why the door is a different product from the shop.

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 event ticketing with door check-in.

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

Start today, for free