Responsive React Photo Gallery
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
photos
src
ui
.gitignore
.travis.yml
Dockerfile
Procfile
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
reloadDocker.sh
settings.gradle
start.sh

README.md

Build Status codecov

Responsive Photo Gallery

https://responsive-photo-gallery.herokuapp.com/

Responsive web photo gallery designed to work on mobiles, tablets etc ...

To add content just add '*.jpg' photos to '/app/photos/'.

Sub-folders

  • src/: spring boot application code
  • ui/: Folder for frontend development

Requirements

  • JDK version 7+

Compile and run tests

./gradlew clean build test

IDE Setup

Intellij

./gradlew cleanIdea idea

Run

Run locally

PORT=8081 ./gradlew bootRun

In a browser go to http://localhost:8081/.

Run remotely via heroku

Assuming you have a heroku account you can setup and remotely deploy the application by running the following:

heroku login
heroku create
git push heroku master
heroku ps:scale web=1
heroku open
heroku logs --tail

UI Development

For ease of frontend development you can build and run the 'ui' separately. See 'ui/README.md' for details. COR's has been enabled server side to allow REST api requests on different ports.

To run webpack and update the public files you can run the command: ./gradlew updatePublicFiles (from the project root).