Skip to content

harveyrendell/strava-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strava webhook

Documentation:

Run

Install dependencies

npm install

Set up secrets file

Create a secrets file for your specific stage: .env.<stage> Include the following variables.

CLIENT_ID=<value>
CLIENT_SECRET=<value>
SUBSCRIPTION_ID=<value>
DISCORD_WEBHOOK_URL=<value>
LAYER_ARN=<value>
MAPBOX_ACCESS_TOKEN=<value>

Deploy with serverless

serverless deploy --stage <stage>

Setting up a Strava subscription

Steps to set up a Strava subscription are defined here (You must get approval before your application will receive events).

curl -X POST https://api.strava.com/api/v3/push_subscriptions \
      -F client_id=<client-id> \
      -F client_secret=<client-secret> \
      -F 'callback_url=https://<your-callback-url>' \
      -F 'verify_token=STRAVA'

Developing

To deploy a single function:

serverless deploy function --stage <stage> --function <function-name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages