Available at: strava.bjm.me.uk
- Fetch either your most recent runs or a specific run and view statistics (5k/10k time and pace etc.)
- Receive an email when a new run is uploaded including statistics.
- Merge two consecutive activities into one (note: start time is changed by 1 min. otherwise Strava detects as duplicate.)
- Setup a Strava API Application here
- Copy
sample.env
to.env
and change values docker-compose -f docker-compose-dev.yml up -d
to start the DBnpm ci
to install packagesnpm run start:dev
to start the server: localhost:3000
- Setup a Strava API Application here
- Copy
sample.env
to.env
and change values docker-compose up -d
to start the DB and server- Access the server: localhost:3000
-
Make POST request to
curl -X POST https://www.strava.com/api/v3/push_subscriptions \ -F client_id=blah \ -F client_secret=blah \ -F 'callback_url=http://a-valid.com/url' \ -F 'verify_token=STRAVA'
-
Should respond with subscription ID on success
-
Ensure verify_token parameter corresponds to VERIFY_TOKEN in .env file. Same goes for STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET