Build the API
Code Lab180 min
Build the API
Your NestJS course was rehearsal; this is the show:
- Entities + migrations from the diagram you designed.
- One module per feature; controllers thin, services honest.
- Validation on every write; auth on everything private.
- Seed data so the first run isn't an empty shell.
Work in vertical slices: one endpoint, complete — from route to database — before the next starts. A small finished slice beats a large unfinished one every single time.
Exercise
Build your capstone's first vertical slice end to end. It must be callable with curl before you start the second.
Practice this lesson in the IDE
Open the Capstone practice workspace, edit the starter code, and run your work in the browser.
Open IDE and practice