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.
- Frontendwhat you see and touch — runs on YOUR device
- Backendthe brain on a server — rules, logic, decisions
- 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.
Key takeaways
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.