Building Apps with AILesson 2 of 87

Module 1 · The machine, and what the model can see of it

What a web app is actually made of

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 of 9 in this chapter

This chapter’s goalChoose between an inline completion tool, an editor agent and a prompt-to-app platform for a given job, name the four parts of a running web app and which of them the model can observe, and get a project running on your own machine or a free hosted one without asking anybody for help.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
One tap on Book nowBrowserCollects theform and sendsPOST/api/bookingsNetwork400 ms each wayon a train, andsometimes itdropsServerChecks who isasking,validates, asksthe databaseDatabaseAnswers; a rowis written andsurvivesResponseA status codeand JSON; thescreen changesEvery serious mistake in AI-built software is a confusion about which of these boxes something isrunning in. The Network tab shows you the middle three from the outside.
Every serious mistake in AI-built software is a confusion about which of these boxes something is running in. The Network tab shows you the middle three from the outside.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Four parts and one road between them

Every web app you will build is the same four things.

The browser runs on the user’s device. It is given HTML (the content and its structure), CSS (how it looks) and JavaScript (what happens when you click). It is a stranger’s machine, on a stranger’s network, and you control none of it.

The server runs somewhere you pay for. It is a program that sits waiting, and when a request arrives it decides what to send back. Your rules live here, because this is the only place a user cannot edit them.

The database is where things survive. Anything that must still exist tomorrow (bookings, accounts, messages) is written here. The server talks to it. The browser never should.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Building with AI exam.

Stuck on something?Ask Beatriz, your AI tutor

How to cite: Addaly (2026) ‘What a web app is actually made of’, in Building Apps with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-apps-with-ai/what-a-web-app-is-made-of (Accessed: 29 November 2026).