Skip to content

willianpaixao/strava-webhoook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strava-webhook

pipeline status coverage report

Deployment

$ gcloud functions deploy strava-webhook \
    --entry-point com.paixao.rundapp.StravaWebhook \
    --env-vars-file=.dev.env \
    --memory=256MB \
    --runtime java11 \
    --trigger-http \
    --allow-unauthenticated

Testing

Running cloud function locally

NOTE: It requires Google Cloud SDK installed and credentials set.

$ mvn function:run

Invoking cloud function

NOTE: It requires Google Cloud SDK installed and credentials set.

$ curl --request POST --data '{"aspect_type":"create","event_time":1549560669,"object_id":1,"object_type":"activity","owner_id":9999999,"subscription_id":999999}' localhost:8080

Running unit tests

$ mvn test