/folder

A folder for your images and other files.

Primary LanguageRuby

Folder

A very simple, very insecure image and file host for internal usage.

Usage

Upload an file at /uploads/new or using the REST API. TODO: Max file size of 10 MB? Store using flat files and let the server throw those at the user agent.

View the file at /uploads/:id. TODO: Query parameters can resize an image: /uploads/:id?width=350. TODO: document all parameters

Setup

Download the source code and run the installer.

cd folder
script/install

This will install Chef and run the embedded cookbook to install the application to the default location with default configuration.

Development

Make sure to update the cookbook in config/chef when you alter configuration or introduce a non-gem dependency.

Postgres is the default database adapter, so install it and rake db:setup before running the server.

Change into the config/chef directory and vagrant up to set up the application in a Vagrant VM. The site will be available at http://localhost:8080/.