Stage 1
Stage 1: App Router Foundations
Content wave complete. Parts 1–4 are written, built, and verified against this harness — see each part's own README for real, captured output.
Goal: Go from a blank terminal to a multi-page, navigable Next.js site using nothing but file-based routing, layouts, and metadata — no rendering-model or data-fetching concepts yet (those are Stages 2–3). Time: ~18 h of lessons at 1–1.5 hours a day · Level: comfortable with React (see the roadmap's prerequisites), new to Next.js
Parts in this stage
Do them in order. Each part builds on the ones before it.
| Part | Topic | Learning outcomes | Time |
|---|---|---|---|
| 1 | Project setup and the App Router mental model | Scaffold a project with create-next-app; explain dev/build/start; explain App Router vs Pages Router in one paragraph (Pages Router is not taught further — see DESIGN-NOTES.md); read the generated tsconfig.json and next.config.ts |
~4 h |
| 2 | File-based routing | Turn folders into routes with page.tsx; add dynamic segments ([id]) and catch-all segments ([...slug]); use route groups ((group)) to organize without affecting the URL; contrast this against the client-side router (React Router) learners already know |
~5 h |
| 3 | Layouts, templates and navigation | Nest layout.tsx files; know when a template.tsx differs from a layout; navigate with next/link and the next/navigation hooks; add loading.tsx, not-found.tsx, and error.tsx as file-based UI states (the rendering "why" behind these comes in Stage 2) |
~5 h |
| 4 | Metadata, fonts and static assets | Set page metadata with the Metadata API and generateMetadata; load fonts with next/font; serve images/icons from public/; use next/image for a correctly sized, lazy-loaded image |
~4 h |
Prerequisites for this stage
- React fundamentals and client-side routing concepts — see the roadmap's prerequisites for the full list
- A working Node.js + npm install (verified versions in
TOOLING.md) - Nothing from Next.js itself — this stage starts from zero