Before you can use Firebase Cloud storage, you need to obtain a service token key. Follow the steps below to integrate Firebase storage with Jet.
To get the JSON key you need to add Firebase to your Google project. First, go to Firebase and just click Get Started.
To create a project, follow the steps:
- Click on the
Add Project
button - Choose a name for the project
- Click on the
Continue
button - Select the Google Account
- Click on the
Create Project
button
{% @arcade/embed flowId="lQDBBnBzvaYovj6DJgYW" url="https://app.arcade.software/share/lQDBBnBzvaYovj6DJgYW" %}
Then go to the Service Accounts to generate a new JSON private key. Once you generate a private key, it will automatically download to your computer.
To generate a private key, follow the steps:
- Click on the
Settings
of the Project Overview - Click on the
Project Settings
- Go to the Service Accounts tab
- Click on the
Generate new private key
button
{% @arcade/embed flowId="Khzwc6u4GUHfVszt1b7m" url="https://app.arcade.software/share/Khzwc6u4GUHfVszt1b7m" %}
Select Firebase Storage from the list of available storage options, upload the JSON file or paste the service token generated for your service account.
Here's an example of a JSON Service Key obtained from Firebase:
{
"type": "service_account",
"project_id": "{your_project_name}",
"private_key_id": "{your_private_key_id}",
"private_key": "-----BEGIN PRIVATE KEY-----\{your_private_key}\n-----END PRIVATE KEY-----\n",
"client_email": "{you_client_email}",
"client_id": "{your_client_id}",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "{you_client_url}"
}
Once you have integrated Firebase Storage with Jet you will see a Storage File Viewer that'll allow you to access your data. For more information about using storage and uploading files, see the File Storage and Uploading section.