Skip to content

Example nextjs app demonstrating different routing patterns

Notifications You must be signed in to change notification settings

attilacsanyi/next-routing

Repository files navigation

Next Routing

Next.js 15 React 19 TypeScript SQLite

A comprehensive demonstration of Next.js 15's advanced routing capabilities and patterns based on Maximilian Schwarzmüller's Udemy course.

Setup

  1. Install dependencies:

    pnpm install
  2. Initialize the SQLite database:

    pnpm db:init

Next Routing Demo

Route Groups

  • Content Routes ((content))
    • /news - Main news listing
    • /archive - News archive
  • Landing Routes ((landing))
    • / - Homepage

Parallel Routes

  • Archive Page with Parallel Routes
    • @archive - Filter component
    • @latest - Latest news section Example: /archive/2024/3

Intercepting Routes

  • Modal Image View
    • (.)/image - Intercepts full image view Example: /news/hiking/image

Dynamic Routes

  • News Detail Pages
    • /news/[slug] - Individual news articles Example: /news/will-ai-replace-humans

Catch-all Routes

  • Archive Filter
    • /archive/[[...filter]] - Handles year/month filtering Example: /archive/2024 or /archive/2024/3

Special Files

  • layout.tsx - Shared layouts
  • not-found.tsx - Custom 404 pages
  • error.tsx - Error boundaries
  • default.tsx - Default UI for parallel routes

Screenshots

Home Page

Home Page

Archive Page

Archive Page

News Page

News Page

News Details Page

News Details Page

About

Example nextjs app demonstrating different routing patterns

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors