Skip to content

Commit 9a8f064

Browse files
authored
chore: add missing readmes for functions samples (#1612)
1 parent 6b76c26 commit 9a8f064

25 files changed

Lines changed: 283 additions & 0 deletions

File tree

functions/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions samples
4+
5+
This directory contains samples for Google Cloud Functions. Each sample can be run locally by calling the following:
6+
7+
```
8+
cd SAMPLE_DIR
9+
composer install
10+
composer start
11+
```
12+
13+
Each sample can be deloyed to Google Cloud Functions by calling the following:
14+
15+
```sh
16+
cd SAMPLE_DIR
17+
gcloud functions deploy FUNCTION_NAME --runtime php81 --trigger-http --allow-unauthenticated
18+
```
19+
20+
For more information, see
21+
[Create and deploy a Cloud Function by using the Google Cloud CLI](https://cloud.google.com/functions/docs/create-deploy-gcloud), or see the
22+
[list of all Cloud Functions samples](https://cloud.google.com/functions/docs/samples).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Build Custom Extensions sample
4+
5+
Build and Deploy a PHP C-Extension in Cloud Functions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions File System sample
4+
5+
This simple tutorial demonstrates how to access a Cloud Functions instance's file system.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-concepts-filesystem
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Send HTTP Requests sample
4+
5+
This simple tutorial demonstrates how to make an HTTP request from a Cloud Function.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-concepts-requests

functions/env_vars/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Environment Variables sample
4+
5+
This simple tutorial demonstrates how to use environment variables within a Cloud Function.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-env-vars
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Firebase Analytics sample
4+
5+
This simple tutorial demonstrates how to trigger a function when a Firebase Analytics event is received.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-firebase-analytics

functions/firebase_auth/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Firebase Auth sample
4+
5+
This simple tutorial demonstrates how to trigger a function when a Firebase Auth user object changes.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-firebase-auth
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Firestore trigger sample
4+
5+
This simple tutorial demonstrates how to trigger a function in response to a Firestore database update.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-firebase-firestore
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Firebase React to value change sample
4+
5+
This simple tutorial demonstrates how to react to value change by updating a value in Firestore
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-firebase-reactive
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Functions Firebase Remote Config sample
4+
5+
This simple tutorial demonstrates how to process changes to Firebase remote config values.
6+
7+
- View the [source code][code].
8+
- See the [tutorial].
9+
10+
[code]: index.php
11+
[tutorial]: https://cloud.google.com/functions/docs/samples/functions-firebase-remote-config

0 commit comments

Comments
 (0)