https://github.com/willianpaixao/strava-webhoook
Mirror from https://gitlab.com/willianpaixao/strava-webhook
https://github.com/willianpaixao/strava-webhoook
google-cloud-sdk strava-api webhook
Last synced: about 2 months ago
JSON representation
Mirror from https://gitlab.com/willianpaixao/strava-webhook
- Host: GitHub
- URL: https://github.com/willianpaixao/strava-webhoook
- Owner: willianpaixao
- License: gpl-3.0
- Created: 2020-08-02T08:13:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T14:23:14.000Z (over 3 years ago)
- Last Synced: 2025-01-16T19:23:33.128Z (3 months ago)
- Topics: google-cloud-sdk, strava-api, webhook
- Language: Java
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strava-webhook
[](https://gitlab.com/willianpaixao/strava-webhook/-/commits/master)
[](https://gitlab.com/willianpaixao/strava-webhook/-/commits/master)### Deployment
```shell script
$ 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](https://cloud.google.com/sdk) installed and credentials set.
```shell script
$ mvn function:run
```
#### Invoking cloud function
> NOTE: It requires [Google Cloud SDK](https://cloud.google.com/sdk) installed and credentials set.
```shell script
$ 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
```shell script
$ mvn test
```