Skip to content

Wryte/expressdrive

Repository files navigation

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",
   "secret": "somethingsecret", 
   "logo": "/path/to/logo.png",
   "primaryColor": { "h": "(0-360)", "s": "(0-100)", "l": "(0-100)" }
}

The secret is used to generate file names and password hashing on the server. Change it for every instance you have of ExpressDrive

About

file storage for express apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published