/meteor-google-cloud-storage

Simple GCS API connector

Primary LanguageJavaScriptMIT LicenseMIT

Google Cloud Storage API Client

Google Cloud Storage API Client for Meteor.

Right now only remove file method is implemented

Quick example

import { GoogleCloudStorage } from 'meteor/jss:google-cloud-storage';

//initialize client
var authOptions = {
  email: CloudSettings.SERVICE_EMAIL,
  keyFile: CloudSettings.PEM_FILE, //PEM file name located in `/private` directory
};

var cloudStorageClient = new GoogleCloudStorage(authOptions); //create new client instance

// remove file
cloudStorageClient.removeFile('test_file_to_remove.txt');

Getting PEM file

This package is built on top of google-oauth-jwt npm package. Here's detailed instruction how to generate .pem file.


Made by Professional Meteor Development Studio - Professional Meteor Development Company