Initialize Firebase Cloud Functions
Explore the process of initializing Firebase Cloud Functions in a web project using TypeScript. Understand how to configure event-based triggers like onCreate, onUpdate, onDelete, and onWrite for Cloud Firestore. Learn to manage dependencies and set Node.js engine configurations for deployment.
We'll cover the following...
We'll cover the following...
Initialization
Let’s remember the best practice, which is to create a new branch:
git switch -c event-based-triggers
To start, you have to first login to Firebase. Navigate to services/web/firebase and execute the following command:
npm run firebase:login
And then initialize Firebase Cloud Functions in services/web/firebase:
./node_modules/.bin/firebase init functions
The wizard asks whether you ...