1
0
mirror of https://github.com/Luzifer/gallery.git synced 2024-09-16 14:18:31 +00:00
Pure HTML/Javascript gallery viewer with an uploader written in Go
Go to file
2018-04-28 22:17:29 +02:00
frontend Increase radability of text 2018-04-28 19:05:42 +02:00
vendor Vendor dependencies 2018-04-28 22:10:37 +02:00
.eslintrc.json Initial version of frontend 2018-04-28 00:38:23 +02:00
.gitignore Initial implementation of upload 2018-04-28 18:51:55 +02:00
.repo-runner.yaml Add automated building 2018-04-28 22:08:03 +02:00
album.go Initial implementation of upload 2018-04-28 18:51:55 +02:00
bindata.go Increase radability of text 2018-04-28 19:05:42 +02:00
Gopkg.lock Vendor dependencies 2018-04-28 22:10:37 +02:00
Gopkg.toml Vendor dependencies 2018-04-28 22:10:37 +02:00
History.md prepare release v0.1.0 2018-04-28 22:17:29 +02:00
image.go Initial implementation of upload 2018-04-28 18:51:55 +02:00
LICENSE Add Meta files 2018-04-28 22:05:13 +02:00
main.go Initial implementation of upload 2018-04-28 18:51:55 +02:00
Makefile Initial version of frontend 2018-04-28 00:38:23 +02:00
README.md Add Meta files 2018-04-28 22:05:13 +02:00
storage_file.go Initial implementation of upload 2018-04-28 18:51:55 +02:00
storage_log.go Initial implementation of upload 2018-04-28 18:51:55 +02:00
storage_s3.go Implement S3 storage 2018-04-28 20:22:51 +02:00
storage.go Implement S3 storage 2018-04-28 20:22:51 +02:00

Go Report Card

Luzifer / gallery

gallery is a pure HTML/Javascript gallery viewer with an uploader written in Go. It is intended to run inside S3/CloudFront or other static web hosting scenarios: The uploader resizes the original image to fit given image constraints and also creates a thumbnail image. Afterwards an albums.json file is written and uploaded with the frontend files and the images.

Setup

  • Create a S3 bucket
  • Grant global read permission using a bucket policy
  • Put the images for your album into a folder
  • Upload them:
    $ gallery --storage s3://io-luzifer-photos --update-frontend --album-id=2012020601 --album-title 'Frozen river' ./frozen-river
     28 / 28 [==============================] 100.00% 36s
    

Storage engines

  • S3 (s3://bucket-name)
    Upload everything into the root of the bucket
  • File (file://path)
    Upload everything into the given folder (file:///tmp/gallery would "upload" to /tmp/gallery/...)