This is a React application that fetches and visualizes runs from Strava.
Activities of type Run (which include normal runs and trail runs) are fetched daily from Strava. When a listed run is selected, it is displayed on the map, along with basic information including:
- Run name
- Distance
- Pace
- Run type (normal or trail)
- Elevation gain
- Fork this repo
- Install dependencies
- If you use
nvm, activate the desired Node version:nvm install. - Install Node modules with
npm install
- If you use
- Follow Strava's Getting Started guide to request an API application, and follow the authentication steps to get
client_id,client_secret,refresh_token, and so on- For local deployment, save these as
REACT_APP_CLIENT_ID,REACT_APP_CLIENT_SECRET,REACT_APP_AUTH_CODEin the .env file in the root of the repo. Do not commit this file publicly. - For GitHub Pages deployment, save these as
REACT_APP_CLIENT_ID,REACT_APP_CLIENT_SECRET,REACT_APP_AUTH_CODEas repository secrets in repo settings.
- For local deployment, save these as
- Start the app with
npm start
Note: The MIT license applies to the code in this repository. Usage of Strava's API may have other licensing restrictions.