How Software Fits Together

The Anatomy of Every App

Frontend, backend, database — every app you've ever used is these three parts having a conversation. Learn the map once and all software becomes legible.

Here is a secret that collapses months of confusion: virtually every app on earth — Instagram, your bank, this site — has the same three-part skeleton. Learn it once and you can navigate any conversation about software, because everyone is always talking about one of these parts.

  1. Frontendwhat you see and touch — runs on YOUR device
  2. Backendthe brain on a server — rules, logic, decisions
  3. Databasethe memory — everything that must survive a refresh

Walk through tapping "buy" on any store: the FRONTEND (the button, the page — built with HTML/CSS/JavaScript) sends a request to the BACKEND. The backend — code on a computer in a data center — checks the rules: is this user logged in? is the item in stock? did payment clear? Then it writes the result into the DATABASE (order saved, stock reduced) and replies to the frontend: show the confirmation. Every login, post, and purchase in your digital life is this exact round trip.

  • Frontend code is public — anyone can view it. This is why secrets NEVER live there (remember this in the security lesson).
  • The backend is where the truth is enforced — the frontend merely asks; the backend decides.
  • The database is why anything persists: no database, and every refresh is amnesia.
  • "Full-stack" just means working across all three — now you know the whole buzzword.
Use the map as a diagnostic tool: when something breaks or a developer describes a feature, ask which part it lives in. "Button looks wrong" = frontend. "Payment went through but no confirmation saved" = backend/database. Locating problems on the map is half of technical conversation.

Key takeaways

1Every app = frontend (seen) + backend (decides) + database (remembers).
2The frontend asks; the backend enforces; the database persists.
3Locating any feature or bug on this map makes all software conversations legible.

This is one lesson of 541.

The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.