Six lessons that turn the Module 1 FastAPI skeleton into a working Task Tracker backend inside Cursor IDE: a strict Pydantic data model, five CRUD endpoints built one prompt at a time, status-transition business rules, and a pytest suite you prove with a Break Test.
In Module 1 you ended with a FastAPI skeleton and a single /health endpoint. Module 2 turns it into a real backend. The AI moves out of the browser and into the editor, where it can read your actual files. You then build in a fixed order: the data model every endpoint depends on, the five CRUD endpoints one at a time, the business rule that decides which status changes are allowed, and finally a test suite you trust only after you have broken the code and watched the right tests fail. Each part ends at a verification gate, and you don’t move on until it passes. The thread running through all of it is the same: strict prompt, review, verification, targeted correction. Cursor can draft code, but you own correctness.
The five parts and their verification gates · Lecture notes p. 2
2.0Define the toolCursor reads the repo; /health returns 200.
2.1Data modelmodels.py and storage.py; verify_a.py all PASS.
2.2CRUD endpointsFive routes; curl and /docs confirm codes.