This is a simple route progress exercise built with Next.js 14.
First, run the development server:
pnpm dev
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
}
]
}