Overview:
Basic React TypeScript app pulling data from Strava and visualizing it in React Leaflet
Tech stack:
- Yarn
- React TypeScript
- Material UI
- React Testing Library
- Redux Toolkit - used for local app state like modal open/closed, selected rows etc.
- Redux Saga.
- React-Leaflet Maps
- Github Actions for running checks - CI workflow can be seen here
Instructions:
- You will need to have a configured app in strava to get you OAuth Info.
- Once you have this setup, update the
.env.development
file by adding the values for the environmental variables: - Save 😉
REACT_APP_STRAVA_CLIENT_ID=your_client_id
REACT_APP_STRAVA_CLIENT_SECRET=your_client_secret
REACT_APP_STRAVA_CALLBACK_URL=http://localhost:3000
Running the app:
- Run
yarn install
- Run
yarn start:dev
Testing the app:
Run yarn test
orRun yarn watch
orRun test:coverage
orRun test:premerge
Preview:
Strava Api documentation:
Known Issues:
- All tests that interact with the React-Leaflet components are currently failing