Menu

Post image 1
Post image 2
1 / 2
0

Spec-Driven Development with Claude Code: UI, Deploy & The Living Spec — Part 3 of 3

DEV Community·jesus manrique·17 days ago
#ZOyEbznW
#tutorial#webdev#ai#spec#class#fullscreen
Reading 0:00
15s threshold

Series: Spec-Driven Development with Claude Code — Part 1 · Part 2 · Part 3 In Part 1 we created the spec and scaffold. In Part 2 we implemented auth and data access. Today we close the loop: UI, route protection, deployment, and — most importantly — how to keep the spec alive as your product evolves. Because a spec that doesn't get updated is worse than no spec: it gives you false confidence. Step 1: Auth Middleware Protecting routes sounds simple but gets messy without a clear spec. Ours (US-5) says exactly what to protect: /products requires authentication /login and /register redirect to /products if already authenticated We ask Claude Code: > Read @specs/catalogo-guayoyo.md US-5. Implement the auth middleware in middleware/auth.ts. Use defineNuxtRouteMiddleware. No duplicated logic — the middleware should be generic.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More