Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @parse/fs-files-adapter with all npm packages installed. Try it out:

var fsFilesAdapter = require("@parse/fs-files-adapter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@parse/fs-files-adapter v1.0.1

File system adapter for parse-server

parse-server-fs-adapter

Build Status codecov.io

parse-server file system storage adapter

installation

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

usage with parse-server

using a config file

{
  "appId": 'my_app_id',
  "masterKey": 'my_master_key',
  // other options
  "filesAdapter": {
    "module": "@parse/fs-files-adapter",
    "options": {
      "filesSubDirectory": "my/files/folder" // optional
    } 
  }
}

passing as an instance

var FSFilesAdapter = require('@parse/fs-files-adapter');

var fsAdapter = new FSFilesAdapter({
      "filesSubDirectory": "my/files/folder" // optional
    });

var api = new ParseServer({
    appId: 'my_app',
    masterKey: 'master_key',
    filesAdapter: fsAdapter
})
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free