Skip to content
AI Exercises
–points–day streak

What you don't see: backend and data, explained with a restaurant

The backend is the part of an app you never see: it takes your request, does the work and keeps the data safe. Think of a restaurant. The menu is the frontend, the waiter is the API, the kitchen is the backend and the pantry is the database. Place an order below and follow it.

Follow an order through the restaurant

Choose an order
  1. Menu

    the frontend

  2. Waiter

    the API

  3. Kitchen

    the backend

  4. Pantry

    the database

Choose an order above, then follow it step by step through the restaurant.

The 7 words in this module

Each one has its own page with a demo and three quick questions. Work through them in order.

  1. What is a backend?

    The backend is the part of an app that runs out of sight on another computer, doing the work you asked for and keeping the data.

  2. What is a database?

    A database is an organised place where an app stores information, so it can find, change and add to it later.

  3. What are tables, rows and columns in a database?

    A table holds one kind of thing, like customers. Each row is one item (one customer) and each column is one detail about it (like their city).

  4. What is an API?

    An API is a messenger with fixed rules: it carries your request to the backend and brings the answer back.

  5. What is authentication?

    Authentication is how an app checks that you are who you say you are, for example with an email and password.

  6. What is file storage in an app?

    Storage is where an app keeps whole files, like photos, videos and PDFs, while the database keeps a short note of where each file is.

  7. What is a server function?

    A server function is one small job that runs in the backend only when the app asks for it, like working out a delivery fee or sending an email.

Sort 10 parts of an online shop into the right place, then put a restaurant order in order. Points count toward your score and today's streak.

Module check: frontend, backend or database?

Question 1 of 2

Sort each part of an online shop: frontend, backend or database?

  1. The color and shape of the "Buy" button
  2. The sign-up form you type into
  3. The layout changing to fit a phone
  4. Checking your password is correct
  5. Charging your card when you pay
  6. Sending a "your order shipped" email
  7. Working out the delivery fee
  8. The saved list of every customer
  9. Each customer's past orders
  10. Product prices and stock counts