expressdrive

A cloud drive plugin for express

Usage no npm install needed!

<script type="module">
  import expressdrive from 'https://cdn.skypack.dev/expressdrive';
</script>

README

ExpressDrive

Installation

npm install expressdrive

Usage

var express = require("express");
var ExpressDrive = require("expressdrive");
var app = express();
var expressDrive = new ExpressDrive(app);

Configuration

Configuration for ExpressDrive is in a file called expressdrive.config.json in your project's root folder

{
   "path": "/files",
   "adminUserName": "admin",
   "adminPassword": "test",
   // the secret is used to generate file names and password hashing
   // on the server. change it for every instance you have of ExpressDrive
   "secret": "somethingsecret", 
   "logo": "/path/to/logo.png",
   "primaryColor": { "h": (0-360), "s": (0-100), "l": (0-100) }
}