Code Monkey home page Code Monkey logo

parse-server-ovh-storage-adapter's Introduction

parse-server-ovh-storage-adapter

parse-server adapter for Object storage (OVH Cloud Storage, OpenStack "Swift" )

This adapter is writen for project DIVA APPS.

installation

npm install --save parse-server-ovh-storage-adapter

Or

yarn add parse-server-ovh-storage-adapter

Usage with parse-server

Using a config file

{
  "appId": 'my_app_id',
  "masterKey": 'my_master_key',
  // other options
  "filesAdapter": {
    "module": "parse-server-ovh-storage-adapter",
    "options": {
      region:   OVH_REGION,
      container:OVH_CONTAINER,
      username: OVH_USERNAME,
      password: OVH_PASSWORD,
      authURL:  OVH_AUTH_URL,
      tenantId: OVH_TENANT_ID,
      baseUrl:  OVH_BASE_URL
    }
  }
}

Passing as an instance

var OVHAdapter = require('parse-server-ovh-storage-adapter');

const fileOVHAdapter = new OVHAdapter({
      region:   OVH_REGION,
      container:OVH_CONTAINER,
      username: OVH_USERNAME,
      password: OVH_PASSWORD,
      authURL:  OVH_AUTH_URL,
      tenantId: OVH_TENANT_ID,
      baseUrl:  OVH_BASE_URL
});

var api = new ParseServer({
	appId: 'my_app',
	masterKey: 'master_key',
	filesAdapter: fileOVHAdapter
})
Key Sample value
OVH_REGION SBG1
OVH_CONTAINER CONTAINER/SubFolder
OVH_USERNAME Username
OVH_PASSWORD Password
OVH_AUTH_URL https://auth.cloud.ovh.net/v2.0/
OVH_TENANT_ID abcxyzmnqrty
OVH_BASE_URL https://storage.sbg1.cloud.ovh.net/v1/AUTH_abcxyzmnqrty/CONTAINER/SubFolder

parse-server-ovh-storage-adapter's People

Contributors

phuongwisslmedia avatar tvpsoft avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.