Overview
In the previous part, we used SQL directly against the database and added one small read-only feature to the study tracker project. In this part, we continue in that same project and build more of the application around the database. By the end of the part, the project should support a full create, read, update, and delete flow for two small features.
This part stays in the study tracker project as its practical context. Inside that project, the work appears in two connected tracks.
The regular chapters use a smaller tags feature as a guided practice track for CRUD — create, read, update, and delete. The project checkpoint then asks you to apply the same ideas more independently to the existing decks feature.
Throughout the chapters of this part, keep building on top of the same study tracker project. At this point, your project should already have the decks table and a small read flow for decks, as well as the functionality for showing the newest deck.
The structure of this part is as follows:
- The Walking Skeleton Setup explains what the study tracker scaffold gives you, why tools such as Docker and Docker Compose are used in the project, and how the
tagstable is added through a new migration. - Using Databases from Web Applications introduces the request-query-template flow of a server-rendered web application and starts the functionality for working with tags.
- Reading Tag Data from Code shows how a one-table read feature becomes a visible tag page.
- Parameterized Queries and SQL Injection introduces the safe way to pass values from the browser into SQL, before the next chapters start writing queries that do exactly that.
- Creating Data from Forms shows how a form submission becomes a new tag row.
- Deleting Data in Applications introduces functionality for deleting tags.
- Updating Data in Applications adds functionality for editing tags.
- Organizing a Small Application discusses a small, clear structure for the tag feature, starting with a shared base template and then a small query-helper module.
- Project Checkpoint applies the same CRUD patterns to
decks.
If you lose track of the scaffold while reading this part, the Project Roadmap page is a useful companion. It also includes a short project file map and request-flow reminder.
In this part, chapter-level tasks that ask you to edit files and return a zip are worked on locally as Programming Exercises rather than SQL Practice Exercises. The earlier SQL Practice sequences ran as in-browser SQL; Programming Exercises ask you to change the actual project files that you work on locally and return them for grading.
Recommended Order of Work
A useful rhythm for this part is:
- read the regular chapters in order,
- complete the chapter-level
tagsexercises as you go, building on the same project scaffold rather than starting from scratch each time, - then complete the project checkpoint on
decks, - and finish with the recap quiz and feedback form.
Finally, at the end of the part, there is a recap and feedback chapter that briefly summarizes the part and asks for feedback.