https://github.com/fabrix-app/generics-google-storage
Generics: Google Storage
https://github.com/fabrix-app/generics-google-storage
fabrix generics google-storage nodejs typescript
Last synced: about 1 month ago
JSON representation
Generics: Google Storage
- Host: GitHub
- URL: https://github.com/fabrix-app/generics-google-storage
- Owner: fabrix-app
- License: mit
- Created: 2018-07-09T02:49:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T15:30:10.000Z (almost 8 years ago)
- Last Synced: 2025-03-03T04:15:46.537Z (over 1 year ago)
- Topics: fabrix, generics, google-storage, nodejs, typescript
- Language: JavaScript
- Size: 29.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generics-google-storage
[![Gitter][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url]
[![Build Status][ci-image]][ci-url]
[![Test Coverage][coverage-image]][coverage-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Follow @FabrixApp on Twitter][twitter-image]][twitter-url]
Generic Data Store for Google Cloud through Spool-generics.
Looking for [Spool-Generics?](https://github.com/fabrix-app/spool-generics)
## Install
```sh
$ npm install --save @fabrix/generics-google-storage
```
## Configure
```js
// 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
}
}
}
```
[npm-image]: https://img.shields.io/npm/v/@fabrix/generics-google-storage.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@fabrix/generics-google-storage
[ci-image]: https://img.shields.io/circleci/project/github/fabrix-app/generics-google-storage/master.svg
[ci-url]: https://circleci.com/gh/fabrix-app/generics-google-storage/tree/master
[daviddm-image]: http://img.shields.io/david/fabrix-app/generics-google-storage.svg?style=flat-square
[daviddm-url]: https://david-dm.org/fabrix-app/generics-google-storage
[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square
[gitter-url]: https://gitter.im/fabrix-app/Lobby
[twitter-image]: https://img.shields.io/twitter/follow/FabrixApp.svg?style=social
[twitter-url]: https://twitter.com/FabrixApp
[coverage-image]: https://img.shields.io/codeclimate/coverage/github/fabrix-app/generics-google-storage.svg?style=flat-square
[coverage-url]: https://codeclimate.com/github/fabrix-app/generics-google-storage/coverage