We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

You're on assignment part 2/2 for this lesson.

HTTP CRUD Database Lifecycle

It's important to understand how data flows through a typical web application.

  1. The frontend processes some data from user input – maybe a form is submitted.
  2. The frontend sends that data to the server through an HTTP request – maybe a POST.
  3. The server makes a SQL query to its database to create an associated record – probably using an INSERT statement.
  4. Once the server has determined that the DB query was successful, it responds to the frontend with a status code. Hopefully a 200-level code (success)!