Install the following dependencies:
You'll also need a Git client & text editor; if you don't have those, then you should also install the following:
You'll also want to sign-up for Mapbox services here and, if you haven't already, create a GitHub account.
Now you can fork & clone this repository to start building your own web map.
After cloning the repo, you'll need to insert your Mapbox public access token (which can be found here) into src/settings.json
.
You'll also need to install your package dependencies locally by running the following from the root directory of your cloned repository:
yarn install
To run the app locally, run the following from the root directory of your cloned repository:
yarn run serve
The application should now be running at http://localhost:8080/
Changes that you make to javascript and CSS files will be automatically refreshed!
Before deploying, you must first build the website by running the following command from the root directory:
yarn run build
To deploy your latest code to the web, simply build (as per above) then commit and push your local changes to the master
branch in Github.