Preparing your workspace
Modern applications move data through multiple layers, with each layer responsible for receiving, validating, processing, storing, or returning information.
A typical application starts with user input in the frontend. The frontend sends data to a backend through an HTTP request, often using JSON. The backend validates the request, applies business rules, and interacts with a database or other services. The database returns data to the backend, which transforms the result into an API response. The frontend then receives the response and updates the user interface. Understanding this complete flow makes later API, database, authentication, and full-stack topics much easier.
When a student changes their profile name, the frontend sends the new name to an API, the backend validates and saves it in the database, and the API returns the updated profile.
Frontend ↓ JSON Request Backend API ↓ Validate + Business Logic Database ↓ Data Backend API ↓ JSON Response Frontend
Data flows through the frontend, backend, and database while each layer performs its own responsibility.