CoachnestCoachnest
Sign InGet Started
Back to course

Next.js 16: The Complete Developer Guide

…
—
Contents
1

What's New in Next.js 16

Reading14mFree

Installation, CLI & Your First Project

Reading12mFree
3

Project Structure & Conventions Deep Dive

Reading16m
4

Turbopack — The New Default Bundler

Video18m
5

Configuring TypeScript, ESLint & next.config.ts

Reading14m
6

Chapter 1 — Quiz

Quiz10m
7

App Router Fundamentals

Reading16m
8

Dynamic Routes, Catch-Alls & Type-Safe Params

Reading14m
9

Route Groups & Parallel Routes

Reading16m
10

Intercepting Routes & Modal Patterns

Reading12m
11

Loading, Error & Not-Found UI

Reading12m
12

Chapter 2 — Routing Quiz

Quiz12m
13

Understanding the Server/Client Boundary

Reading18m
14

Choosing When to use "use client"

Reading14m
15

Composing Server & Client Components

Reading14m
16

server-only, client-only & Code Splitting

Reading12m
17

Chapter 3 — Quiz

Quiz10m
18

Fetching Data in Server Components

Reading14m
19

The Next.js 16 Cache Model

Reading16m
20

Revalidation: revalidateTag, revalidatePath & On-Demand

Reading12m
21

Cache Components — Building Reusable Cached Functions

Reading14m
22

Search Params, Cookies & Dynamic APIs

Reading12m
23

Chapter 4 — Quiz

Quiz12m
24

Server Actions From First Principles

Reading16m
25

Forms with useActionState & Progressive Enhancement

Reading14m
26

Optimistic UI with useOptimistic

Reading12m
27

Validation with Zod + Server Actions

Reading12m
28

Chapter 5 — Quiz

Quiz10m
29

Static vs Dynamic vs Streaming

Reading14m
30

generateStaticParams & Pre-Rendering Dynamic Routes

Reading12m
31

Incremental Static Regeneration (ISR)

Reading12m
32

Partial Prerendering (PPR)

Reading16m
33

Edge Runtime vs Node.js Runtime

Reading12m
34

Rendering Strategies Deep Dive

Video22m
35

Chapter 6 — Quiz

Quiz12m
36

Tailwind CSS v4 with Next.js 16

Reading14m
37

CSS Modules, Global Styles & Scoped CSS

Reading10m
38

next/image — Smart, Fast Images

Reading14m
39

Fonts, Icons & Metadata

Reading12m
40

Chapter 7 — Quiz

Quiz10m
41

Middleware Fundamentals

Reading14m
42

Sessions, JWTs & Cookies

Reading16m
43

Protecting Server Components & Server Actions

Reading12m
44

Chapter 8 — Quiz

Quiz10m
45

Prisma with Next.js — The Production Setup

Reading14m
46

Mutations: Server Actions + Database Writes

Reading12m
47

Route Handlers & REST APIs

Reading12m
48

Chapter 9 — Quiz

Quiz10m
49

Unit & Component Testing with Vitest

Reading12m
50

End-to-End Testing with Playwright

Reading14m
51

Deploying to Vercel

Reading12m
52

Self-Hosting with Docker

Reading14m
53

Production Performance Checklist

Reading12m
54

Final Assessment — Next.js 16 Mastery

Quiz20m
←→navigate lessons
Chapter 1 of 10·Chapter 1 — Getting Started with Next.js 16
Lesson 2 of 54Reading12 min

Installation, CLI & Your First Project

#Installation, CLI & Your First Project¶

Prerequisites¶

ToolVersion
Node.js20.9+ (LTS recommended)
Package managernpm 10+, pnpm 9+, yarn 4+, or bun 1.1+
GitAny recent version

Verify:

bash
2 lines
1node --version   # v20.9.0 or later
2npm --version    # 10+

Creating a Project¶

The fastest way:

bash
1 line
1npx create-next-app@latest my-app

The CLI asks a handful of questions. The Next.js 16 defaults:

✔ Would you like to use TypeScript? › Yes ✔ Would you like to use ESLint? › Yes ✔ Would you like to use Tailwind CSS? › Yes ✔ Would you like your code inside a 'src/' directory? › No ✔ Would you like to use App Router? › Yes ✔ Would you like to customize the default import alias (@/*)? › No ✔ Use Turbopack? (now default) › Yes

Tip: Pass --use-pnpm (or --use-bun) to skip the prompt and avoid creating a stray package-lock.json.

The Dev Server¶

bash
2 lines
1cd my-app
2npm run dev

You should see:

▲ Next.js 16.0.0 (Turbopack) - Local: http://localhost:3000 - Environments: .env.local ✓ Ready in 480ms

Open http://localhost:3000. Edit app/page.tsx — the browser updates in well under 100 ms.

The Five Commands You'll Run Daily¶

CommandWhat it does
next devTurbopack dev server with HMR
next buildProduction build (Turbopack)
next startRuns the production build
next lintESLint with the Next preset
next infoDiagnostic dump for bug reports

Project Layout (Default)¶

my-app/ app/ layout.tsx ← Root layout (must export <html><body>) page.tsx ← Home route (/) globals.css ← Tailwind directives & global styles favicon.ico public/ ← Static files served from / next.config.ts ← Configuration (TypeScript!) tsconfig.json package.json

Common First-Day Mistakes¶

  1. 1Editing node_modules — never works; reinstall instead.
  2. 2Importing from pages/ — App Router uses app/. Don't mix unless intentional.
  3. 3Restarting the dev server after every change — HMR handles 99% of edits. Only restart on config changes.
  4. 4Forgetting "use client" — adding state/effects to a Server Component throws an error. Add the directive at the top.

Quick Smoke Test¶

Replace app/page.tsx with:

tsx
8 lines
1export default function HomePage() {
2  return (
3    <main className="p-12">
4      <h1 className="text-4xl font-bold">Hello, Next.js 16!</h1>
5      <p className="mt-2 text-gray-600">If you see this, you're ready.</p>
6    </main>
7  );
8}

Save. The page updates. You're set. ✅

Previous

What's New in Next.js 16

Next

Project Structure & Conventions Deep Dive

Use ← → arrow keys to navigate between lessons