View Code? Open in Web Editor
NEW
Subscribes to user's google calendar's notifications, and exposes an endpoint to allow apps to poll. Uses Cloud run.
Dockerfile 2.23%
JavaScript 97.77%
calendar-notifications's Introduction
- Delete token, and recreate it, as it expires! (todo how long does it last?)
- Remember to decode the url output
- there are 2 'apps' in this repo
- Index.js: An express server deployed to cloud run, which 'watch's accounts using google calendar push notifications
- Fetch-event.js: A poll to gcal api, retrieving events location, and geocodes it.
- Package application into container image
- Uploaded to container registry
gcloud builds submit --tag gcr.io/ford-hack-99744/cape
- deploy cloud run container
gcloud run deploy --image gcr.io/ford-hack-99744/cape --platform managed
- currently run manually using postman and token generator (
fetch-event.js
)
- gcloud functions deploy calendarEventPOST --runtime nodejs10 --trigger-http --region=europe-west2
calendar-notifications's People
Watchers