Help us shape the future of Go! Take the 2026 Go Developer Survey

gogallery

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

GoGallery

A very simple gallery server written in go use your files as the directory structure. No upload /database (well we have a internal K/V for a cache)

Using the golang templating so no massive ball of javascript to edit

Supports PWA (Progressive Web Apps) the is very simple service worker.

Demo at https://gallery.exceptionerror.io

Installation

Clone the repo and run dep ensure to get all the dependencies

or use the docker image

docker build -t gogallery .
docker run -p 6060:80 -v $(pwd):/app/pictures gogallery

Usage

Edit the config and change the name basepath and base folder that is used for scanning images

Config can be also edited via environmental variables

GLLRY_SERVER_PORT
GLLRY_SERVER_WORKERS

GLLRY_DATABASE_BASEURL

GLLRY_GALLERY_NAME
GLLRY_GALLERY_BASEPATH
GLLRY_GALLERY_URL
GALLRY_GALLERY_THEME
GLLRY_GALLERY_TWITTER
GLLRY_GALLERY_FACEBOOK
GLLRY_GALLERY_EMAIL
GLLRY_GALLERY_ABOUT
GLLRY_GALLERY_FOOTER

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL