All Projects → parse-community → parse-server-gcs-adapter

parse-community / parse-server-gcs-adapter

Licence: other
parse-server adapter for Google Cloud Storage

Programming Languages

javascript
184084 projects - #8 most used programming language
Handlebars
879 projects

Projects that are alternatives of or similar to parse-server-gcs-adapter

revel
[Deprecated] Revel is an elegant forum or knowledge sharing system base on NodeJS especially VueJS and Parse-Server
Stars: ✭ 18 (-30.77%)
Mutual labels:  parse-server
parse-react
[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
Stars: ✭ 58 (+123.08%)
Mutual labels:  parse-server
appengine-hosting
Host static websites with Google Cloud Storage and App Engine
Stars: ✭ 17 (-34.62%)
Mutual labels:  google-cloud-storage
content-moderation-image-api
An NSFW Image Classification REST API for effortless Content Moderation built with Node.js, Tensorflow, and Parse Server
Stars: ✭ 50 (+92.31%)
Mutual labels:  parse-server
ob bulkstash
Bulk Stash is a docker rclone service to sync, or copy, files between different storage services. For example, you can copy files either to or from a remote storage services like Amazon S3 to Google Cloud Storage, or locally from your laptop to a remote storage.
Stars: ✭ 113 (+334.62%)
Mutual labels:  google-cloud-storage
gcs-resource
Concourse resource for interacting with Google Cloud Storage
Stars: ✭ 33 (+26.92%)
Mutual labels:  google-cloud-storage
nestjs-storage
Nestjs file system / file storage module wrapping flydrive
Stars: ✭ 92 (+253.85%)
Mutual labels:  google-cloud-storage
parse-stack
Parse Server Ruby Client SDK
Stars: ✭ 59 (+126.92%)
Mutual labels:  parse-server
hubble-scripts
🔭 📜 Transform Sketch config data & assets into dev-friendly formats.
Stars: ✭ 23 (-11.54%)
Mutual labels:  google-cloud-storage
parse server dart
Parse Server SDK for dart and flutter
Stars: ✭ 25 (-3.85%)
Mutual labels:  parse-server
AmbulanceLocator
Ambulance Locator lets the user find nearby ambulances and as well as call the nearby ambulances.
Stars: ✭ 15 (-42.31%)
Mutual labels:  parse-server
clj-gcloud-storage
Clojure wrapper for google-cloud-storage Java client.
Stars: ✭ 20 (-23.08%)
Mutual labels:  google-cloud-storage
node-apn
Apple Push Notification module for Node.js
Stars: ✭ 128 (+392.31%)
Mutual labels:  parse-server
parse-smtp-template
Parse Server Module to easy send emails via SMTP with a customizable template option
Stars: ✭ 18 (-30.77%)
Mutual labels:  parse-server
go-bqloader
bqloader is a simple ETL framework to load data from Cloud Storage into BigQuery.
Stars: ✭ 16 (-38.46%)
Mutual labels:  google-cloud-storage
emacs-easy-jekyll
Emacs major mode for managing jekyll
Stars: ✭ 53 (+103.85%)
Mutual labels:  google-cloud-storage
Meteor-Files-Demo
Demo application for ostrio:files package
Stars: ✭ 16 (-38.46%)
Mutual labels:  google-cloud-storage
gcp-storage-emulator
Local emulator for Google Cloud Storage
Stars: ✭ 43 (+65.38%)
Mutual labels:  google-cloud-storage
snowflake
A React-Native Android iOS Starter App/ BoilerPlate / Example with Redux, RN Router, & Jest with the Snowflake Hapi Server running locally or on RedHat OpenShift for the backend, or a Parse Server running locally or remotely on Heroku
Stars: ✭ 13 (-50%)
Mutual labels:  parse-server
ParseCareKit
Securely synchronize any CareKit 2.1+ based app to a Parse Server Cloud. Compatible with parse-hipaa.
Stars: ✭ 28 (+7.69%)
Mutual labels:  parse-server

Parse Server GCS Adapter

Build Status Snyk Badge Coverage auto-release

npm latest version


The Parse Server Google Cloud Storage Adapter.


Installation

npm install --save @parse/gcs-files-adapter

Usage with Parse Server

Config File

{
  // Parse server options
  appId: 'my_app_id',
  masterKey: 'my_master_key',
  // other options
  filesAdapter: {
    module: '@parse/gcs-files-adapter',
    options: {
      projectId: 'projectId',
      keyFilename: '/path/to/keyfile',
      bucket: 'my_bucket',
      // optional:
      bucketPrefix: '', // default value
      directAccess: false // default value
    } 
  }
}

Environment Variables

Set your environment variables:

GCP_PROJECT_ID=projectId
GCP_KEYFILE_PATH=/path/to/keyfile
GCS_BUCKET=bucketName

And update your config / options

{
  // Parse server options
  appId: 'my_app_id',
  masterKey: 'my_master_key',
  // other options
  filesAdapter: '@parse/gcs-files-adapter'
}

Alternatively, you can use

GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables.

Instance Parameters

var GCSAdapter = require('@parse/gcs-files-adapter');

var gcsAdapter = new GCSAdapter(
  'project', 
  'keyFilePath', 
  'bucket' , {
    bucketPrefix: '',
    directAccess: false
  }
);

var api = new ParseServer({
  appId: 'my_app',
  masterKey: 'master_key',
  filesAdapter: gcsAdapter
})

or with an options hash

var GCSAdapter = require('@parse/gcs-files-adapter');

var gcsOptions = {
  projectId: 'projectId',
  keyFilename: '/path/to/keyfile',
  bucket: 'my_bucket',
  bucketPrefix: '',
  directAccess: false
}

var gcsAdapter = new GCSAdapter(gcsOptions);

var api = new ParseServer({
  appId: 'my_app',
  masterKey: 'master_key',
  filesAdapter: gcsAdapter
});

Options

  • directAccess: if set to true, uploaded files will be set as public and files will be served directly by Google Cloud Storage. Default is false and files are proxied by Parse Server.

Obtaining Credentials File

See the Google Cloud documentation for how to generate a key file with credentials.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].