All writing

Learning the App Router through a sensor dashboard

Published

A retrospective on work from 2023.

In early 2023, I used the Next.js App Router for a university sensor-dashboard project. The frontend used Next.js 13.1, while the backend was a separate Express application with Prisma. It was a university project.

That context matters to me because it was an opportunity to work through a new framework model on a bounded problem. I already had professional experience with the Pages Router. Here, I had to think about how the new directory structure related to the application I was building.

Start with the data boundary

The dashboard had an interface to render and a backend responsible for sensor data. Keeping those responsibilities visible helped me reason about the application without treating the frontend framework as the whole system.

A page can be correctly structured and still depend on an API response that is missing, delayed or shaped differently from what the interface expects. The engineering work includes that boundary: what data the page needs, where it comes from and what the user sees while it is being obtained.

The project included dynamic routes and a loading state in the App Router, alongside an existing API route structure. It was a small example of the mixed application shapes that appear when a framework changes. The new conventions did not remove the need to understand the existing pieces.

A loading screen is part of the interface

I tend to think of a dashboard as more than its successful render. There is also the period before data arrives and the point where the application cannot show what someone requested.

Working with a loading boundary made that part of the page structure explicit. It gave me a concrete place to think about the experience while the main content was unavailable, rather than leaving it as an incidental effect of fetching data.

The practical experience was learning to express the states of the interface within a different routing model.

What carried into later work

My professional App Router work followed in 2024. By then, I had already used the structure in a project with a separate backend and a specific set of data requirements.

The lasting lesson was to learn framework features through an application boundary I could explain. A route, a loading state and an API each have a job. Understanding their relationship was more valuable than collecting examples of new syntax.

Client work is described anonymously; examples focus on my contribution and general engineering lessons.