Next.js

Overview

About Next.js

Next.js is the leading full-stack React framework, used to build fast, SEO-friendly web applications with routing, rendering, data fetching and backend logic in a single project. This course starts with Foundations: React & Modern JavaScript, covering the TypeScript, React hooks and Git skills you need, then Getting Started with Next.js walks through project setup and how a request becomes a rendered page.

Routing & Layouts covers the modern App Router: nested and dynamic routes, shared layouts, and loading and error states. Server & Client Components explains the most important mental model in modern Next.js, and Data Fetching & Caching shows how to load data on the server, stream it to the browser, and control what gets cached and revalidated.

Server Actions & Forms covers mutating data safely with validation and optimistic UI, while Styling & Optimization adds Tailwind CSS, optimized images and fonts, and metadata for SEO. Route Handlers & Databases turns your app into a real backend with API endpoints and a PostgreSQL data layer.

Finally, Authentication & Security covers sessions, protected routes and authorization, and Testing, Deployment & Performance takes your app to production with automated tests, deployment to Vercel or Docker, and Core Web Vitals monitoring.

Content

10 modules
01

Foundations: React & Modern JavaScript

Modern JavaScript and TypeScript essentials, React components, props, state and hooks, plus Git and terminal basics — the groundwork before building with Next.js.

React TypeScript Git
02

Getting Started with Next.js

What Next.js is and why it exists, creating a project, folder structure, the dev server, and how rendering works from request to page.

create-next-app Project Structure Rendering
03

Routing & Layouts

The App Router in depth: pages, nested and dynamic routes, route groups, shared layouts, loading and error states, and navigation with Link and the router.

App Router Dynamic Routes Layouts
04

Server & Client Components

How React Server Components differ from Client Components, when to use each, the "use client" boundary, and composing them without bloating your bundle.

RSC use client Composition
05

Data Fetching & Caching

Fetching data on the server, streaming with Suspense, static vs dynamic rendering, revalidation, and understanding the Next.js caching layers.

fetch Suspense ISR
06

Server Actions & Forms

Mutating data with Server Actions, building forms with validation (Zod), pending and optimistic UI, and revalidating the page after a change.

Server Actions Zod useActionState
07

Styling & Optimization

Tailwind CSS and CSS Modules, plus built-in optimization: next/image, next/font, metadata and SEO, and Open Graph images.

Tailwind next/image Metadata
08

Route Handlers & Databases

Building API endpoints with Route Handlers, connecting to PostgreSQL with an ORM like Prisma or Drizzle, and structuring your data layer.

Route Handlers Prisma PostgreSQL
09

Authentication & Security

Sessions and JWTs, Auth.js, protecting routes with middleware, authorization checks in server code, and common web security pitfalls.

Auth.js Middleware Sessions
10

Testing, Deployment & Performance

Unit and end-to-end testing with Jest and Playwright, environment variables, deploying to Vercel or Docker, and measuring Core Web Vitals.

Playwright Vercel Web Vitals

What You Can Do After This Course

By the end of the curriculum you'll have built and deployed real Next.js projects and covered the full path from React fundamentals to a secured, production-ready app. Concretely, you'll be able to:

Build full-stack apps with the App Router — create nested routes, layouts, and loading and error states, and structure a real Next.js project.

Choose the right component type — split work between Server and Client Components to keep bundles small and pages fast.

Control data fetching and caching — fetch on the server, stream with Suspense, and decide what is static, dynamic or revalidated.

Handle forms and mutations safely — use Server Actions with Zod validation, pending states and optimistic updates.

Build backends and connect databases — write Route Handlers and query PostgreSQL through an ORM like Prisma or Drizzle.

Ship secure, tested apps — add authentication, protect routes, write tests, and deploy to Vercel or Docker with good Core Web Vitals.