Coder Social home page Coder Social logo

galldir's Introduction

Go Report Card

Galldir galldir

The idea of this project is a photo gallery that is entirely driven from the filesystem - no databases, no image upload interfaces, (almost) no configuration.

Each directory within the filesystem is considered to be an album with all image files within the directory being photos in the album. Albums may be nested.

Each album has a human-readable name that is generated from the name of its directory. This can be overridden by a text file called .title within the directory.

Albums are displayed in date order, most recent first. The date of an album is taken from the modification date of its directory, but this can be overridden by a text file called .date within the directory that contains the album's time in the format YYY-MM-DD hh:mm:ss. This is required when using S3 that does not have directories per se.

Galldir example album

Installation

go get github.com/jamesfcarter/galldir/cmd/galldir

Invocation

galldir requires two arguments: the address to listen on and the directory of pictures to serve:

galldir -addr :3000 -dir ~/pictures

It is also possible to serve pictures from an S3 bucket:

galldir -addr :3000 -dir https://s3.eu-central-1.wasabisys.com/examplebucket

In both cases, browsing to http://localhost:3000/ would reach the gallery.

License

This project is distributed under the GNU GPL license v3, see LICENSE for more information.

Uses lightgallery.js which has its own license.

galldir's People

Contributors

jamesfcarter avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.