项目作者: samuelkraft

项目描述 :
Trail Routes - Curated running & hiking trails in Sweden
高级语言: TypeScript
项目地址: git://github.com/samuelkraft/routes.git
创建时间: 2021-03-24T13:21:35Z
项目社区:https://github.com/samuelkraft/routes

开源协议:MIT License

下载


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.

  1. NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=

Install dependencies

  1. npm install
  2. # or
  3. yarn

Start the server with

  1. npm run dev
  2. # or
  3. 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.

  1. brew install vips