Wryte / expressdrive

file storage for express apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 67.2%Language:HTML 19.5%Language:CSS 13.3%