samuelkraft / routes

Trail Routes - Curated running & hiking trails

Home Page:https://routes.samuelkraft.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Trail Routes - Curated running & hiking trails

https://routes.samuelkraft.com

License:MIT License


Languages

Language:TypeScript 71.0%Language:JavaScript 26.1%Language:CSS 2.9%