Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophe-ch/cloud-functions-demo
Project developed as part of a presentation on Cloud Functions with Google Cloud.
https://github.com/christophe-ch/cloud-functions-demo
cloud-functions devops google-cloud nodejs serverless
Last synced: 25 days ago
JSON representation
Project developed as part of a presentation on Cloud Functions with Google Cloud.
- Host: GitHub
- URL: https://github.com/christophe-ch/cloud-functions-demo
- Owner: Christophe-Ch
- Created: 2023-04-03T18:45:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T17:45:29.000Z (almost 2 years ago)
- Last Synced: 2023-07-31T23:42:21.554Z (over 1 year ago)
- Topics: cloud-functions, devops, google-cloud, nodejs, serverless
- Language: TypeScript
- Homepage:
- Size: 280 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cloud Functions Demo
![Push Cloud Function deployment badge](https://github.com/Christophe-Ch/cloud-functions-demo/actions/workflows/push-cloud-function.yml/badge.svg) ![Fetch Cloud Function deployment badge](https://github.com/Christophe-Ch/cloud-functions-demo/actions/workflows/fetch-cloud-function.yml/badge.svg) ![Arrival times app deployment badge](https://github.com/Christophe-Ch/cloud-functions-demo/actions/workflows/arrival-times-app.yml/badge.svg)
This project has been developed as a support for the Cloud Functions presentation.
## Goal
The objective was to build a system capable of tracking workers arrival times without them having to manually provide these each day.
## Proposed solution
The solution follows the architecture diagram below :
![architecture](architecture.png)
The first Cloud Function tries to push a new document for the day onto the Firestore.
The second Cloud Function fetches and sends all arrival times stored in the Firestore.
The Cloud Run service holds a containerized Angular application which will call the second cloud function then display results in a graph using [Chart.js](https://www.chartjs.org).
One way to automatically call the first Cloud Function could be to use [iOS Shortcuts](https://support.apple.com/guide/shortcuts/welcome/ios).