Integration with Google Cloud Storage
Last updated
Last updated
Backbench account - , the personal account will always remain free to use.
Google developer login- create an account and create an app on google developers from .
Setting up project: after creating a project in google developers, select Api’s and services under that library tab, you will find Api library for different categories, select storage under that select google cloud storage, you will have to click on enable button, this will enable google cloud storage to your project.
Setting up environment variables: Create a via the Google Cloud Platform Console (The Cloud Storage JSON API must also be enabled.) and create a service account.
Once service account is created go to credentials page and download the credentials.
Now go to backbench platform and create a module with .json extension, say cloud.json. copy paste the downloaded credentials and save.
Now go to environment variable section of backbench and add a new environment variable with GOOGLE_APPLICATION_CREDENTIALS as name and value with the path of json file as ./cloud.json and hit on add.
For nodejs only.
Create a module name package.json
and paste the following code.
Select +, in the upper right corner to create a Module. For example, say "google_create.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace PROJECT_ID (from google developers dashboard).
Select save.
Select +, in the upper right corner to create a Module. For example, say "Uploading_object.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace PROJECT_ID (from google developers dashboard).
Select save.
Select +, in the upper right corner to create a Module. For example, say "listing_object.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace PROJECT_ID (from google developers dashboard).
Select save.
Select +, in the upper right corner to create a Module. For example, say "deleting.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace PROJECT_ID (from google developers dashboard).
Select save.