mroggy85/photo-file-server

By mroggy85

Updated about 3 years ago

Simple Photo Filer Server with Deno

Image
0

88

Photo File Server

Simple Photo Filer Server powered by Deno

Usage

Make sure you have a folder called files in the root of your project.

./start

Endpoints

  • /list List all the folders inside the main folder called files

  • /album/:albumName List all the files inside the folder :albumName inside files

  • /photo/:albumName/:photoName Returns the image inside the folder :albumName inside files with the name :photoName. The image will be compressed and resized on the fly leaving the image on disk untouched.

Docker

Build

You can build your own image using the Dockerfile or use the prebuilt image at DockerHub

docker pull mroggy85/photo-file-server:latest
Run

Make sure you mount the files folder and expose port 3000

docker run \
  -d \
  --rm \
  --name deno-file-server \
  -v $(pwd)/files:/app/files:ro \
  -p 3000:3000 \
  deno-file-server

Docker Pull Command

docker pull mroggy85/photo-file-server