arun-gupta/raspi — pull request #1 by svanimpe (2014-06-07 08:21:28+00:00)
Title: Basic image display page

Completed the REST service and added a basic index page. This page simply reloads all the images every 3 seconds. This could be improved by storing an array of image names on the client as well, and comparing that to the output of the service to figure out which images are new and which should be removed from the page.

If you want to host this on OpenShift, you should modify the BASE_URL in images.js (currently points to localhost) and maybe the BASE_DIR in ImageConsumer as well. It's probably better to use the $OPENSHIFT_REPO_DIR (user.home/app-root/runtime/repo/), followed by some custom directory for your app, instead of just user.home.