Skip to content

ben-xD/calendar-notifications

Repository files navigation

  • Delete token, and recreate it, as it expires! (todo how long does it last?)
  • Remember to decode the url output

Notes

  • 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.

CLOUD Run set up

Notes on GCP

  • 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

Watch (sub)

  • currently run manually using postman and token generator (fetch-event.js)

Listener

  • gcloud functions deploy calendarEventPOST --runtime nodejs10 --trigger-http --region=europe-west2

About

Subscribes to user's google calendar's notifications, and exposes an endpoint to allow apps to poll. Uses Cloud run.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published