June 2018
Beginner to intermediate
394 pages
9h 2m
English
Firebase cloud functions require certain important modules, which are the admin SDK module and the functions module itself:
// Cloud functions modules for trigger const functions = require('firebase-functions');// Admin SDK to access the toolchains like Realtime DB, Firestore and so onconst admin = require('firebase-admin');admin.initializeApp(functions.config().firebase);
The functions module will initialize the functions-related components, and the Admin SDK initializes the FCM, Authentication, Realtime Database, and other Firebase toolchains. The Firebase CLI automatically configures and installs all the Node modules in the project using funtions/package.json. We can install third-party node libraries. For example, inside ...
Read now
Unlock full access