Quickstart: Uppercaser for Firestore
mainThis sample demonstrates how to use Cloud Functions for Firebase with Firestore. The application implements two main workflows:
- HTTP Trigger: An HTTP function (
addMessage) receives a text message via an HTTPS request and writes it to Firestore using the Firebase Admin SDK. - Firestore Trigger: A background function (
makeUppercase) triggers automatically whenever a new document is added to Firestore, converting the message text to uppercase.
Prerequisites
- A Firebase project created in the Firebase Console.
- The Firebase CLI installed and configured.