Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samuelkraft/routes

Trail Routes - Curated running & hiking trails
https://github.com/samuelkraft/routes

hiking mapbox maps routes running trails vercel

Last synced: 3 months ago
JSON representation

Trail Routes - Curated running & hiking trails

Awesome Lists containing this project

README

        

This repo contains the source code of [Trail Routes](https://routes.samuelkraft.com)

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](https://docs.mapbox.com/help/glossary/access-token/). Add it as `NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN` to a file called `.env.local`.

```
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=
```

Install dependencies

```bash
npm install
# or
yarn
```

Start the server with

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](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.

```bash
brew install vips
```