liveBook · Manning

File-system based routing

Also called file-based routing

File-system-based routing is a routing approach in which an application's files and directories determine its externally accessible routes and associated handlers or components.

How 3 Manning books explain it

Crack Any Codebase with AI

File-based routing is a routing pattern in which filesystem paths determine the URL paths or other externally accessible routes.

How it is used
Maps an API's externally accessible surface by reading route files and directory structure.
How deep it goes
Explains path-to-URL mapping and architectural signals in conventions, without descending into handler implementation.
Examples
Uses Cal.com's Next.js API routes, tRPC holidays router, versioned booking directories, and parallel public and private transports.
What you can do after
Diagnose and map a framework's API surface from its file tree, then infer versioning and transport decisions.

Read how Crack Any Codebase with AI explains file-system based routing →

Build Financial Software with Generative AI (From Scratch)

File-based routing is a routing technique in which filesystem paths and files determine application URL routes.

How it is used
Connects dashboard links to file-specific pages through folder-defined URLs.
How deep it goes
Demonstrates folder and link implementation, while deferring broader routing behavior beyond nested routes, layouts, and error handling.
Examples
Uses an app-directory route, a bracketed id folder, UUID-based URLs, and clickable uploaded filenames.
What you can do after
Build it by creating a route folder, adding a page file, and linking records to URLs containing their identifiers.

Read how Build Financial Software with Generative AI (From Scratch) explains file-system based routing →

Build AI-Enhanced Web Apps

A routing approach in which an application's file and folder structure determines its routes and rendered components.

How it is used
Maps Next.js application folders and files to URL routes, rendered pages, dynamic segments, and shared layouts.
How deep it goes
Explains route mapping, dynamic params, project directories, and nested layouts, but does not cover deployment or testing.
Examples
Uses root, blog, and dynamic blog-post paths plus root and nested layout structures.
What you can do after
Build routes by arranging Next.js app folders, page.js files, dynamic segments, and layout.js wrappers.

Read how Build AI-Enhanced Web Apps explains file-system based routing →

What to know first

Related concepts

Questions about file-system based routing

What is file-system based routing?

File-system-based routing is a routing approach in which an application's files and directories determine its externally accessible routes and associated handlers or components.

Which Manning books explain file-system based routing?

Crack Any Codebase with AI, Build Financial Software with Generative AI (From Scratch) and Build AI-Enhanced Web Apps.

What should I know before learning file-system based routing?

Manning books that teach file-system based routing usually introduce uri first.

What is file-system based routing a kind of?

File-system based routing is a kind of routing. Routing is the process of directing an item, request, or task to a destination or processing path according to relevant rules or characteristics.

What is file-system based routing also called?

File-system based routing is also called file-based routing.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.