By Tobias Åhlund and Ruben Olander @YRGO WU-2022
If you want this to run on your machine do the following:
-
Clone repository.
-
Sign up on http://www.mapbox.com and get yourself an acess token.
-
Create a file called .env.local in the root folder and paste your API-key as a string. See .example.env for formatting.
-
Run the following commands:
npm install npm create vite@latest . npm i --save mapbox-gl npm i @tanstack/react-query npm i --save-dev @types/mapbox-gl npm i -D @tanstack/eslint-plugin-query
- and finally npm run dev to get your local map running.