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.
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
yarnStart the server with
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
If you get an error like fatal error: 'vips/vips8' file not found you need to install the vips package.
brew install vips