Skip to content

How the pieces fit

Every product is built from the same few pieces, like a browser, a server, a database and hosting. This page covers what each piece does, which ones you need first, how they talk to each other and how to find the one that broke.

Do I need to know how the pieces of my product fit together?

Not to start, because a guide sets up each piece in order. Knowing the pieces helps you tell your AI tool what to build, see what can wait, and find what broke.

If you’re about to follow your first guide
Skim the list of pieces, then start. Come back when a step names one.
If your AI tool asks where something should go, like a key or a form
The list of pieces tells you which part of your product handles it.

What are the pieces of a product?

Products are built from the same few pieces, and each does one job. A simple website needs only a browser to show it and hosting to keep it online.

Browser
Shows your pages and runs the code people tap and click. This part is the frontend.
Server
A computer that answers the browser. It runs code that must stay private, like code that uses a secret key, and talks to the other pieces. This part is the backend.
Database
Saves what people add, like posts or orders, so it’s still there tomorrow. Databases
Sign-in
Checks who someone is, so each person sees only their own things. Sign-in
Email
Sends messages from your product, like a sign-in link or a receipt. Email
Payments
Takes card payments and tells your product when someone has paid. Payments
Hosting
Keeps your product on computers that stay online, so anyone can open it. Hosting
Domain
Your own address, like yourname.com. DNS points it at your hosting. Domains
AI
A model your product sends text to and gets an answer back from. Each use costs a little. AI features

Words: Server, Frontend, Backend, Database, Hosting, Domain, DNS

What’s the fastest way to put the pieces together?

Follow a guide. You build and check on your computer, add the pieces your idea needs, save your code, then put your product online. Your AI tool connects the pieces, and you make the accounts.

If you want a website people read, like a portfolio or a menu
Follow the website guide.
If you want people to sign in and save things
Follow the web app guide. It adds sign-in and a database before you put your product online.

Words: AI coding tool

Which pieces does my product need on day one?

Hosting, plus the pieces your first must-have feature uses. Everything else waits until a feature needs it, so your first version stays small and quick to fix.

If people only read your pages
Hosting is enough. Add a domain when you want your own address.
If people add things that should still be there tomorrow
Add a database now, and sign-in if each person should see only their own things.
If you want to charge money
Add payments after the part people pay for works.
If you want AI in your product
Add it when a feature needs it, and set a spending limit with the AI service first.

Words: Spending limit

Can I build a whole product on free plans?

Yes. A free coding tool and free hosting can cover a small personal project. If your coding sessions regularly hit a usage limit, you can upgrade the tool while keeping the app on free hosting.

The full answer
Each free plan, what you pay for and a monthly total at three sizes: Costs

How do the pieces talk to each other?

With requests. The browser asks a server for something, and the server answers with it and a status code, like 200 for OK or 404 for not found. Services take requests through their API, and an API key in each request shows it’s allowed.

What happens when you tap Save on a post
  1. Browser to server: Save this post
  2. Server to database: Store the text
  3. Database to server: Post stored
  4. Server to browser: Show “Saved”

When you reopen the page, the browser asks for the post again. The database still has the text you saved.

If someone types your address or clicks a link
DNS turns your domain into your host’s address. The browser sends a request there, and your host answers with the page.
If someone saves a post
The browser sends the post to your server or your database’s API. Your access rules check the request before anything is saved.
If your code needs a secret key
Keep it on the server, in an environment variable. Anyone can read the code that runs in a browser.

Words: Request, Status code, API, API key, DNS, Environment variable

How do I find which piece broke?

Follow the request. Open your browser’s developer tools, find the request that failed in the Network tab, and read its status code. The code points you at the piece to fix.

If nothing loads at all
Check the domain and DNS first, then your hosting. DNS changes can take a day or two to show up.
If a request shows 404
The server can’t find what was asked for. Check the address or the page’s name.
If a request shows 401 or 403
Sign-in or access rules said no. 401 means the service doesn’t know who you are. 403 means it knows and won’t allow it.
If a request shows 500 or another number starting with 5
Your server code, or a service it calls, failed. Read the error in your host’s logs and paste it to your AI tool.
If the page loads but a button does nothing
Open the Console tab and read the red error. Paste it to your AI tool with what you clicked.
Developer tools
A panel in your browser that lists each request and error. How to open it: Debugging

Words: Developer tools, Status code, Log

Questions people ask

Updated Sources: MDN: How the web works, MDN: Introduction to the server side, MDN: HTTP response status codes, Chrome DevTools: Inspect network activity, Chrome DevTools: Console overview, Cloudflare: What is a CDN?, Vercel pricing, Vercel: fair use and commercial use, Vercel Functions, Supabase pricing, Firebase pricing, Resend pricing, Stripe pricing, Cloudflare Registrar.