For instance, I use Firebase Hosting to store JSON data files generated by AWS Lambda functions (written in Java+Spring Cloud Function), and these files will be loaded into a mobile app.
This is when "firebase-hosting-api-java" open source library comes into the picture.
Let's open the example project:
Let's checkout the project, and run it. You will see an error, because you did not provide the service account JSON file:
A service account is essential to communicate with the Firebase API's, so let's open
https://console.firebase.google.com/u/0/project/<YOUR_PROJECT_NAME>/settings/general
and click on "Service Accounts"
on this panel click on "Generate new private key". This function will generate your service account JSON file that you can download immediately.
Ok, let's switch back to our IDE, and paste the recently downloaded file into "src/main/resources" folder. Let's re-run the application:
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.