← Track projects
Track project · 08

Ship the First Frontend-to-API Vertical Slice

Connect the web app to the API and use browser/network evidence to understand the complete HTTP exchange.

Definition of done

What you are building

Deliverables

Build plan

Work through it one observable step at a time

  1. 01

    Write the request and response contract before writing fetch code.

  2. 02

    Call `GET /tasks` from the web application and inspect URL, method, headers, status, timing, and JSON.

  3. 03

    Add `POST /tasks` and return 201 with the created resource.

  4. 04

    Send malformed input and verify the chosen 4xx response.

  5. 05

    Force a server failure and distinguish 5xx behavior from client errors.

  6. 06

    Run frontend/API on different origins and configure the narrow CORS policy needed for development.

  7. 07

    Compare cookie and bearer-token request shapes without treating either as authorization by itself.

  8. 08

    Document the final API contract with examples.

Evidence

Do not rely on “it seems to work”

Evidence to collect

Project exit ticket

Close the project only when these are true

Completion