Skip to content

samuelkraft/routes

Repository files navigation

This repo contains the source code of Trail Routes

Written with Next.js, Typescript, Tailwind CSS, Mapbox GL, Turf.js Parses gpx files and shows them on a map.

Getting Started

First create a mapbox account and get an access token. Add it as NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN to a file called .env.local.

NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=

Install dependencies

npm install
# or
yarn

Start the server with

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Troubleshooting

If you get an error like fatal error: 'vips/vips8' file not found you need to install the vips package.

brew install vips