$ gcloud functions deploy strava-webhook \
--entry-point com.paixao.rundapp.StravaWebhook \
--env-vars-file=.dev.env \
--memory=256MB \
--runtime java11 \
--trigger-http \
--allow-unauthenticated
NOTE: It requires Google Cloud SDK installed and credentials set.
$ mvn function:run
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
$ mvn test