Gallery

Webapp for viewing a gallery of images and videos Uses gallery-api webapp as a foundation and adds a AngularJS page on top.

License

License

GroupId

GroupId

com.github.henkexbg
ArtifactId

ArtifactId

gallery
Last Version

Last Version

0.5.3
Release Date

Release Date

Type

Type

war
Description

Description

Gallery
Webapp for viewing a gallery of images and videos Uses gallery-api webapp as a foundation and adds a AngularJS page on top.
Project URL

Project URL

https://github.com/henkexbg/gallery
Source Code Management

Source Code Management

https://github.com/henkexbg/gallery

Download gallery

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.henkexbg/gallery/ -->
<dependency>
    <groupId>com.github.henkexbg</groupId>
    <artifactId>gallery</artifactId>
    <version>0.5.3</version>
    <type>war</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.henkexbg/gallery/
implementation 'com.github.henkexbg:gallery:0.5.3'
// https://jarcasting.com/artifacts/com.github.henkexbg/gallery/
implementation ("com.github.henkexbg:gallery:0.5.3")
'com.github.henkexbg:gallery:war:0.5.3'
<dependency org="com.github.henkexbg" name="gallery" rev="0.5.3">
  <artifact name="gallery" type="war" />
</dependency>
@Grapes(
@Grab(group='com.github.henkexbg', module='gallery', version='0.5.3')
)
libraryDependencies += "com.github.henkexbg" % "gallery" % "0.5.3"
[com.github.henkexbg/gallery "0.5.3"]

Dependencies

runtime (1)

Group / Artifact Type Version
com.github.henkexbg : gallery-api war 0.5.3

Project Modules

There are no modules declared in this project.

Gallery

Responsive web application for displaying your images and videos wherever you are. Images are resized for the screen size in question, and videos are converted to configurable formats. Consists of a web application written in Java using Spring framework, and a front end written in Angular JS.

The backend is actually its own project:

https://github.com/henkexbg/gallery-api.

This project contains only the AngularJS frontend. However, when building this project the backend is automatically fetched via Maven and the complete webapp is created.

Purpose

To be able to easily make your own images and videos available without having to upload them to a 3rd-party. This webapp is up and running in a few minutes and can easily be deployed either to a home server or a virtual machine somewhere in some cloud. While it is possible to configure it in another way, this application is protected by default (with basic authentication). Different users can be set up who can access different media. Focus was also put make it easy to deploy even for not super-tech-savvy people (it remains to be seen whether this goal was reached!), by for instance not requiring a database.

Prerequisites

  • Java 8
  • A servlet container such as Apache Tomcat. Has been successfully tested with version 8 and 9.
  • Maven (if building the webapp from source). Not required during runtime.

Maven Artifact ID

  • Group: com.github.henkexbg
  • Artifact ID: gallery
  • Latest release version: 0.5.3

Download

The whole WAR file can be downloaded from Maven Central. Latest version can be found here: https://search.maven.org/remotecontent?filepath=com/github/henkexbg/gallery/0.5.3/gallery-0.5.3.war

Build From Source

  • Go to root directory of repo [REPO_ROOT].
  • Run mvn clean package
  • In [REPO_ROOT]/target/ you can now either take the war file or the directory named gallery-X.X.X-SNAPSHOT/.
  • The war-file is essentially just a zipped version of the directory.

Configuration

This app requires no configuration. However, gallery-api does, see https://github.com/henkexbg/gallery-api

Optional Configuration

A recommendation would be to use SSL, either via a fronting web server such as HTTPD or by other means, but the setup of that is outside the scope of this webapp.

Known Issues

  • Browser compatibility is most likely not great. Works in Chrome both on desktop and mobile. Firefox seems ok too.
  • Currently possible to uncheck video conversion mode.

Versions

Version
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0