NestJSAuth & validationLesson 51 / 69

Build the reading-list API

Code Lab75 min

Build the reading-list API

The capstone of this course: a real API for your React reading-list app — users, books, lists, saved items, all with auth.

Everything you learned assembles here:

  1. 1.Entities + migrations (books, lists, list_items with relations).
  2. 2.CRUD services + controllers, DTOs validating every write.
  3. 3.Argon2 passwords + JWT cookies, exactly like this app's auth.
  4. 4.Seed a demo user and a starter list.

When your React front end can register, log in, and save a book through your own NestJS API — you have built a full stack. Twice over, in fact: this very app (roadmaps + auth + diagrams) is the reference implementation of this exact lesson.

Exercise

Build the API above. Acceptance: register → log in → create a list → add a book → list it back, all through your endpoints with auth enforced.

Practice this lesson in the IDE

Open the NestJS practice workspace, edit the starter code, and run your work in the browser.

Open IDE and practice