@fabrix/generics-google-storage
v1.1.0
Published
Generic: Google Storage for Spool-generics
Downloads
4
Maintainers
Readme
generics-google-storage
[![Code Climate][codeclimate-image]][codeclimate-url]
Generic Data Store for Google Cloud through Spool-generics.
Looking for Spool-Generics?
Install
$ npm install --save @fabrix/generics-google-storage
Configure
// config/generics.ts
import { GoogleStorageGeneric } from '@fabrix/generics-google-storage'
export const generics = {
// make the key google_storage, alternatively make the key data_store_provider to be the default data store provider in many spools
google_storage: {
adapter: GoogleStorageGeneric,
config: {
project_id: process.env.GLCOUD_PROJECT_ID,
key_filename: process.env.GCLOUD_KEY_FILENAME, // NOTE: Must Be Fully Resolved Path
bucket: process.env.GCLOUD_BUCKET,
host: process.env.GCLOUD_HOST
}
}
}