Skip to content

utrack/gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gallery GoDoc

GitHub license Go Report Card

Sample gallery written using Go.

Requirements

Golang compiler and tools (v1.5 or later) are required. See the official Getting Started guide or your distro's docs for detailed instructions.

Installation

go get -u github.com/utrack/gallery/cmd/gogallery

If you're using Go < 1.6 - you need to set envvar GO15VENDOREXPERIMENT to 1 before go-getting:

GO15VENDOREXPERIMENT=1 go get -u github.com/utrack/gallery/cmd/gogallery

Running

Check that your PATH envvar has $GOPATH\bin and run the command:

gogallery

Use flag -path to provide the path to the pictures:

gogallery -path /home/u/Pictures

HTTP server runs on addr :8080 by default; use the -addr flag to change that.

Testing

go test github.com/utrack/gallery/cmd/gogallery/...

Tests are written using the GoConvey framework. If you have goconvey tools installed in your $PATH, cd to the project's path and run goconvey to use its web interface.

TODO

  • Generate thumbnails and show them instead of fullsize images

About

Sample gallery written using Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published