/simple-route-progress

Simple route progress viewer using NextJS 14 App Router

Primary LanguageTypeScript

This is a simple route progress exercise built with Next.js 14.

Getting Started

First, run the development server:

pnpm dev


UI Sketches

UI Sketch


Sample Response

The API endpoint returns mock data for positions on a fictional route, including your position and others.

{
    "routeName": "Road to Macondo",
    "myPosition": 0.2,
    "peopleOnRoute": [
        {
            "name": "Arcadio",
            "position": 0.4
        },
        {
            "name": "Úrsula",
            "position": 0.25
        },
        {
            "name": "Aureliano",
            "position": 0.75
        }
    ]
}