Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/samuelkraft/routes
- Owner: samuelkraft
- License: mit
- Created: 2021-03-24T13:21:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T20:51:55.000Z (over 1 year ago)
- Last Synced: 2024-10-10T00:11:07.985Z (3 months ago)
- Topics: hiking, mapbox, maps, routes, running, trails, vercel
- Language: TypeScript
- Homepage: https://routes.samuelkraft.com
- Size: 8.6 MB
- Stars: 58
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```