Skip to content

Commit a92a01b

Browse files
authoredJan 7, 2021
Cloud Firestore --> Firestore (firebase#815)
1 parent 4c31c27 commit a92a01b

File tree

12 files changed

+30
-30
lines changed

12 files changed

+30
-30
lines changed
 

‎.opensource/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"quickstarts/thumbnails/README.md": "Quickstart: Cloud Storage Trigger",
1414
"quickstarts/time-server/README.md": "Quickstart: HTTP Trigger",
1515
"quickstarts/uppercase/README.md": "Quickstart: RTDB Trigger",
16-
"quickstarts/uppercase-firestore/README.md": "Quickstart: Cloud Firestore Trigger"
16+
"quickstarts/uppercase-firestore/README.md": "Quickstart: Firestore Trigger"
1717
},
1818
"related": [
1919
"firebase/firebase-functions"
2020
]
21-
}
21+
}

‎README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ different, commonly used JavaScript development patterns such as Typescript, Rea
3030

3131
Here is a set of minimal samples for each Cloud Functions trigger types.
3232

33-
### Quickstart: Uppercaser for [Realtime Database](/quickstarts/uppercase) or [Cloud Firestore](/quickstarts/uppercase-firestore)
33+
### Quickstart: Uppercaser for [Realtime Database](/quickstarts/uppercase) or [Firestore](/quickstarts/uppercase-firestore)
3434

35-
This quickstart sample demonstrates using **Cloud Functions** triggered by **Firebase Realtime Database or Cloud Firestore events**. The function transforms message text written to Firestore to uppercase.
35+
This quickstart sample demonstrates using **Cloud Functions** triggered by **Firebase Realtime Database or Firestore events**. The function transforms message text written to Firestore to uppercase.
3636

3737
### [HTTPS trigger quickstart: Time Server](/quickstarts/time-server)
3838

@@ -192,10 +192,10 @@ Uses a Realtime Database trigger.
192192
Integrates the Bit.ly API to shorten URLs automatically as they are added to the database.
193193
Uses a Realtime Database trigger.
194194

195-
### Full-text search via Algolia for [Realtime Database](/fulltext-search) or [Cloud Firestore](/fulltext-search-firestore)
195+
### Full-text search via Algolia for [Realtime Database](/fulltext-search) or [Firestore](/fulltext-search-firestore)
196196

197-
Enable full-text search on Firebase Database data or Cloud Firestore documents by using an Algolia hosted search service.
198-
Uses a Realtime Database or Cloud Firestore trigger.
197+
Enable full-text search on Firebase Database data or Firestore documents by using an Algolia hosted search service.
198+
Uses a Realtime Database or Firestore trigger.
199199

200200
### [User data cleanup](/user-data-cleanup)
201201

@@ -244,9 +244,9 @@ Uses an Analytics trigger.
244244
This sample uses ffmpeg / fluent-ffmpeg and automatically converts audio files that are uploaded to Cloud Storage to FLAC file format with mono-channel audio @ 16000hz.
245245
Uses a Storage trigger.
246246

247-
### [Presence for Cloud Firestore](/presence-firestore)
247+
### [Presence for Firestore](/presence-firestore)
248248

249-
Build a simple online / offline status indicator for your users by leveraging Cloud Firestore and Realtime Database together.
249+
Build a simple online / offline status indicator for your users by leveraging Firestore and Realtime Database together.
250250
Uses a Realtime Database trigger.
251251

252252
### [Create Jira Issue upon new Crashlytics issue](/crashlytics-integration/jira-issue)

‎fulltext-search-firestore/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Full Text search via Algolia
22

3-
This template shows how to enable full text search on Cloud Firestore documents by using an [Algolia](https://algolia.com) hosted search service.
3+
This template shows how to enable full text search on Firestore documents by using an [Algolia](https://algolia.com) hosted search service.
44

55
## Functions Code
66

77
See file [functions/index.js](functions/index.js) for the code.
88

99
The dependencies are listed in [functions/package.json](functions/package.json).
1010

11-
## Sample Cloud Firestore Structure
11+
## Sample Firestore Structure
1212

1313
As an example we'll be using a secure note structure:
1414

@@ -31,4 +31,4 @@ limits which documents they can search through.
3131
## Setting up the sample
3232

3333
For setup and overview, please see the [Full Text Search Solution](https://firebase.google.com/docs/firestore/solutions/search) in the
34-
Cloud Firestore documentation.
34+
Firestore documentation.

‎fulltext-search-firestore/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-->
1414
<html>
1515
<head>
16-
<title>Full Text Search via Algolia and Cloud Firestore</title>
16+
<title>Full Text Search via Algolia and Firestore</title>
1717
<style>
1818
#content > * {
1919
width: 600px;

‎generate-thumbnail/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ To deploy and test the sample:
2929
- Deploy your project using `firebase deploy`
3030
- Go to your project's [**Cloud Console > IAM & admin > IAM**](https://console.cloud.google.com/iam-admin/iam?project=_), Find the **App Engine default service account** and add the **Service Account Token Creator** role to that member. This will allow your app to create signed public URLs to the images.
3131
- Go to the Firebase Console **Storage** tab and upload an image. After a short time an thumbnail image with the same name but a `thumb_` prefix will be created in the same folder (make sure you refresh the UI to see the new file).
32-
- Go to the Firebase Console **Database** (Realtime Database not Cloud Firestore) tab and see that a child of `images` has been created containing the Signed URLs for both images.
32+
- Go to the Firebase Console **Database** (Realtime Database not Firestore) tab and see that a child of `images` has been created containing the Signed URLs for both images.

‎presence-firestore/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Presence in Firestore
22

3-
This template shows you how to build a presence system (understanding which users are online / offline) in Cloud Firestore with some help from the Realtime Database. An explanation of why this is necessary, how it works, and what changes you need to implement in a client app can be found [in the docs](https://firebase.google.com/docs/firestore/solutions/presence).
3+
This template shows you how to build a presence system (understanding which users are online / offline) in Firestore with some help from the Realtime Database. An explanation of why this is necessary, how it works, and what changes you need to implement in a client app can be found [in the docs](https://firebase.google.com/docs/firestore/solutions/presence).
44

55
## Functions Code
66

‎presence-firestore/functions/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ admin.initializeApp();
2525
const firestore = admin.firestore();
2626

2727
// Create a new function which is triggered on changes to /status/{uid}
28-
// Note: This is a Realtime Database trigger, *not* Cloud Firestore.
28+
// Note: This is a Realtime Database trigger, *not* Firestore.
2929
exports.onUserStatusChanged = functions.database.ref('/status/{uid}').onUpdate(
3030
async (change, context) => {
3131
// Get the data written to Realtime Database

‎presence-firestore/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-->
1414
<html>
1515
<head>
16-
<title>Presence in Cloud Firestore</title>
16+
<title>Presence in Firestore</title>
1717
</head>
1818
<body>
1919
<h3>History of user presence (since this page was opened)</h3>

‎quickstarts/uppercase-firestore/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Firebase SDK for Cloud Functions Quickstart - Cloud Firestore
1+
# Firebase SDK for Cloud Functions Quickstart - Firestore
22

33
This quickstart demonstrates using the **Firebase SDK for Cloud Functions** with
4-
**Cloud Firestore**.
4+
**Firestore**.
55

66
## Introduction
77

88
This sample app does two things:
99

10-
- Creates messages in Cloud Firestore using a simple HTTPS request which is
11-
handled by an HTTP function. Writing to Cloud Firestore is done using the
10+
- Creates messages in Firestore using a simple HTTPS request which is
11+
handled by an HTTP function. Writing to Firestore is done using the
1212
Firebase Admin SDK.
13-
- When a message gets added in Cloud Firestore, a function triggers and
13+
- When a message gets added in Firestore, a function triggers and
1414
automatically makes these messages all uppercase.
1515

1616
## Set up the sample

‎quickstarts/uppercase-firestore/functions/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@
2020
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
2121
const functions = require('firebase-functions');
2222

23-
// The Firebase Admin SDK to access Cloud Firestore.
23+
// The Firebase Admin SDK to access Firestore.
2424
const admin = require('firebase-admin');
2525
admin.initializeApp();
2626
// [END import]
2727

2828
// [START addMessage]
2929
// Take the text parameter passed to this HTTP endpoint and insert it into
30-
// Cloud Firestore under the path /messages/:documentId/original
30+
// Firestore under the path /messages/:documentId/original
3131
// [START addMessageTrigger]
3232
exports.addMessage = functions.https.onRequest(async (req, res) => {
3333
// [END addMessageTrigger]
3434
// Grab the text parameter.
3535
const original = req.query.text;
3636
// [START adminSdkAdd]
37-
// Push the new message into Cloud Firestore using the Firebase Admin SDK.
37+
// Push the new message into Firestore using the Firebase Admin SDK.
3838
const writeResult = await admin.firestore().collection('messages').add({original: original});
3939
// Send back a message that we've successfully written the message
4040
res.json({result: `Message with ID: ${writeResult.id} added.`});
@@ -50,7 +50,7 @@ exports.makeUppercase = functions.firestore.document('/messages/{documentId}')
5050
.onCreate((snap, context) => {
5151
// [END makeUppercaseTrigger]
5252
// [START makeUppercaseBody]
53-
// Grab the current value of what was written to Cloud Firestore.
53+
// Grab the current value of what was written to Firestore.
5454
const original = snap.data().original;
5555

5656
// Access the parameter `{documentId}` with `context.params`
@@ -59,8 +59,8 @@ exports.makeUppercase = functions.firestore.document('/messages/{documentId}')
5959
const uppercase = original.toUpperCase();
6060

6161
// You must return a Promise when performing asynchronous tasks inside a Functions such as
62-
// writing to Cloud Firestore.
63-
// Setting an 'uppercase' field in Cloud Firestore document returns a Promise.
62+
// writing to Firestore.
63+
// Setting an 'uppercase' field in Firestore document returns a Promise.
6464
return snap.ref.set({uppercase}, {merge: true});
6565
// [END makeUppercaseBody]
6666
});

‎quickstarts/uppercase-firestore/functions/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uppercase-firestore-quickstart-functions",
3-
"description": "Uppercaser Firebase Functions Quickstart sample for Cloud Firestore",
3+
"description": "Uppercaser Firebase Functions Quickstart sample for Firestore",
44
"dependencies": {
55
"firebase-admin": "^9.4.2",
66
"firebase-functions": "^3.13.0"

‎stripe/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create Stripe customers and charge them on Cloud Firestore write
1+
# Create Stripe customers and charge them on Firestore write
22

33
This sample shows you how to create Stripe customers when your users sign up, securely collect and store their payment details, and charge them when a new document is written to your Firestore.
44

0 commit comments

Comments
 (0)
Please sign in to comment.