Courses / Specialisations & media / Next.js App Router

₹499Self-paced

Next.js App Router

Build a Next.js App Router application with tested routing, server data access, caching and authorization checks.

  • Who it's for. React and TypeScript developers who understand REST APIs and want to build server-rendered applications with Next.js.
  • Before you start. Prerequisite courses: React Fundamentals, TypeScript Programming, REST API Design.
  • 31 to 53 hours of study with practice
  • 8 modules, 50 lessons
  • 5 guided projects and a final project

What you'll learn

  • Build an App Router application from the file-system conventions: pages, nested layouts, dynamic segments, search params, route groups and loading, error and not-found boundaries.
  • Fetch data in Server Components, avoid request waterfalls, stream slow parts with Suspense and expose Route Handlers where an HTTP endpoint is the right tool.
  • Implement forms and mutations with Server Actions, server-side validation, pending and error states and correct invalidation.
  • Design authentication boundaries: cookie sessions, a data access layer with authorization at the data, optimistic checks in Proxy and re-verification inside every action and route handler.
  • Test and deploy: unit-test pure logic, cover async Server Components with end-to-end tests against a production build, treat the build as a gate and prepare a self-hosted deployment.

Skills you'll gain

  • App routing
  • Server
  • client components
  • Data fetching
  • Caching
  • invalidation
  • Forms
  • mutations
  • Authentication boundaries
  • Metadata
  • assets
  • Testing
  • deployment

Tools you'll use

  • Next.js 16 (App Router)
  • React
  • TypeScript
  • Cache Components

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Module 1

    App routing

    Turn the app directory into URLs: pages, nested layouts, dynamic segments with awaited params, Link navigation, search params, route groups and the loading, error and not-found boundaries.

    You build: Guided project “Trailhead routes, layouts and boundaries”: Pages for home, events list, event detail and about with a nested layout, awaited params and Link navigation.

  2. 02

    Modules 2 to 5

    Server and client components to Forms and mutations

    Decide where each component runs: server-first rendering, the use client boundary, serialisable props, children composition, deep providers and server-only protection.

    You build: Guided project “Cached, invalidated and mutable events”: Cache Components enabled, data functions with use cache, cacheLife and cacheTag, runtime reads behind Suspense, and a written map of what is static, cached and dynamic.

  3. 03

    Module 6

    Authentication boundaries

    Design where identity is established and enforced: separate authentication, sessions and authorization, build a cookie session, centralise checks in a data access layer, add optimistic checks in Proxy and re-verify in every action and handler.

    You build: Guided project “Authenticated organiser area”: Cookie session with httpOnly and sameSite attributes and a data access layer that returns DTOs.

  4. 04

    Modules 7 to 8

    Metadata and assets to Testing and deployment

    Make pages discoverable and shareable: static and generated metadata, favicon, robots and sitemap files, generated Open Graph images, optimised images and crawler-safe metadata streaming.

    You build: Guided project “Discoverable, tested and deployable Trailhead”: Per-event metadata, sitemap and robots files, generated Open Graph images and optimised images with remote patterns.

Full curriculum

8 modules and 50 lessons, 31 to 53 hours of study

01App routing7 lessons, 3 to 5 hours

Lessons

  • Mapping folders to URLs with page files
  • Sharing UI with nested layouts
  • Dynamic segments and awaiting params
  • Client-side navigation with Link
  • Search params for filters on the server and client
  • Route groups and the route.ts conflict rule
  • Loading, error and not-found boundaries

After this module you can

  • Predict which URLs an app directory serves by checking each folder for a page file, and confirm the prediction in the next build route table.
  • Wrap a route subtree in a nested layout and demonstrate that the layout keeps its state while child pages change.
  • Add loading.tsx, error.tsx and not-found.tsx files and trigger each boundary on purpose to prove which segment it covers.
02Server and client components6 lessons, 3 to 4 hours

Lessons

  • What renders on the server by default
  • Placing the use client boundary at the smallest interactive leaf
  • What can cross the boundary as props
  • Nesting Server Components inside Client Components with children
  • Providers and third-party components that need the client
  • Keeping secrets and server-only code off the client

After this module you can

  • Show that a page is a Server Component by default by observing where its logging, HTML and JavaScript appear.
  • Add the use client directive only to the file that needs state or events, and explain what else joins the client bundle.
  • Protect a data module with the server-only import and verify the token never reaches the client bundle.
03Data fetching6 lessons, 3 to 4 hours

Lessons

  • Reading data directly in async Server Components
  • Deduplicating reads within one request
  • Parallel versus sequential fetching
  • Streaming slow content with Suspense and loading.tsx
  • Passing a promise to a Client Component with use
  • Route Handlers for JSON endpoints

After this module you can

  • Write an async Server Component that awaits a data function and render rows from it, and explain what is and is not cached by default.
  • Show that identical fetch calls are memoized in a render and wrap a non-fetch data function with React cache to get the same effect.
  • Create route.ts handlers with Web Request and Response, verify method handling, and know how Cache Components treats GET.
04Caching and invalidation7 lessons, 3 to 5 hours

Lessons

  • Enabling Cache Components and reading the route table
  • Caching data and components with use cache
  • Choosing a cacheLife profile and spotting short-lived caches
  • Runtime data, Suspense and connection
  • Tags and invalidation: cacheTag, revalidateTag and updateTag
  • revalidatePath and refresh in Server Actions
  • Recognising the previous caching model

After this module you can

  • Turn on Cache Components, build, and classify each route using the printed route table and the dev insights instead of guesswork.
  • Apply the use cache directive at data level and component level and show from query counts that arguments form the cache key.
  • Read legacy code that uses fetch cache options, unstable_cache and route segment config, and state what each does without Cache Components.
05Forms and mutations6 lessons, 3 to 4 hours

Lessons

  • Submitting a form to a Server Action
  • Validating form data on the server
  • Field errors and pending state with useActionState
  • Calling Server Actions from Client Components
  • Closures, return values and origin checks
  • Expected failures versus unexpected errors in mutations

After this module you can

  • Create a Server Action, pass it to a form's action prop, read the submitted FormData on the server and show the form works without client JavaScript.
  • Validate FormData fields inside the action, reject invalid input before any write, and return structured field errors.
  • Return expected failures as state, let unexpected failures reach error.tsx, and place redirect outside try and catch.
06Authentication boundaries6 lessons, 3 to 4 hours

Lessons

  • Separating authentication, sessions and authorization
  • Creating a signed cookie session
  • A data access layer with verifySession and DTOs
  • Optimistic checks with Proxy
  • Authorizing inside actions and route handlers
  • Why layout and interface checks are not enough

After this module you can

  • Name which job each part of a Next.js application performs and place every protected resource in a threat table with the layer that enforces it.
  • Issue a signed, expiring session cookie from a Server Action with safe attributes, and delete it on logout.
  • Demonstrate that a layout-level guard leaves other entry points open and move the check to the data and the leaf component.
07Metadata and assets6 lessons, 3 to 4 hours

Lessons

  • Static metadata exports
  • Data-driven metadata with generateMetadata
  • Favicon, robots and sitemap files
  • Generated Open Graph images
  • Optimising images with next/image
  • Metadata streaming and crawlers

After this module you can

  • Export a Metadata object from a layout and a page, and verify the resulting head tags in the served HTML.
  • Return per-event metadata from generateMetadata and share one read with the page.
  • Explain how metadata streams for browsers but blocks for known crawlers, and check the difference with user-agent requests.
08Testing and deployment6 lessons, 3 to 4 hours

Lessons

  • Choosing test types for App Router code
  • Unit testing pure logic and authorization rules
  • End-to-end journeys against a production build
  • Testing handlers, Proxy matching and the authorization matrix
  • The build as a quality gate
  • Preparing a self-hosted deployment runbook

After this module you can

  • Assign each part of an App Router application to a test type and tool, and justify using end-to-end tests for async Server Components.
  • Extract validation and permission rules into pure functions and test boundaries with a runner such as Vitest.
  • Verify a production start locally and write a runbook covering environment variables, restart checks, encryption keys and cache scope, without deploying anywhere.

What you'll build

5 guided projects along the way, then a final project.

  • Trailhead routes, layouts and boundaries

    after module 1
  • Server-first rendering with a safe data layer

    after module 3
  • Cached, invalidated and mutable events

    after module 5
  • Authenticated organiser area

    after module 6
  • Discoverable, tested and deployable Trailhead

    after module 8

Final project

Next.js application with tested routing data access and authorization. Choose one option: Club events platform; Workshop booking site; Local marketplace.

What you submit

Source submission: repository with README, scripts, tests and gate script, no credentials committed.

How it's reviewed

Trainer review against the rubric: Routing and rendering; Data and caching; Mutations and security; Quality and delivery; Communication.

Where you'll use it

  • Build public event pages that are cached, plus an organiser area that only signed-in owners can change.
  • Handle form submissions with server actions and refresh the affected pages after a change.

Roles that use these skills

  • Full-stack developer
  • Front-end engineer
  • React developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: React Fundamentals, TypeScript Programming, REST API Design. Learners should have completed React Fundamentals or pass this diagnostic: write a function component that takes props and renders a list with stable keys; use useState and an event handler; explain why an effect is not the place for derived values. They also need the earlier course and the earlier course skills as listed in the catalog prerequisites: comfortable modern JavaScript or TypeScript with async/await and ES modules, and HTTP and data basics (status codes, headers, JSON, the idea of a database table or collection). Accepted equivalents: equivalent React experience plus a passed diagnostic. This course does not re-teach components, props, state or hooks; it starts at the App Router file system, the server/client split and everything after it. Development needs a machine that can run Node.js and a local browser; shared or production servers are never used.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Where do the labs run?

Documentation consulted on 2026-10-12 is labelled version 16.4.0 on every fetched page; Next.js 16.4 was published 2026-10-06 on the official blog. The course targets Next.js 16.x with Cache Components, which the installation page lists as part of the recommended create-next-app defaults.

Be first in when Next.js App Router opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹499Opens soon
Notify me