Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Hack day project: live dashboard of current users
Scala JavaScript CoffeeScript Ruby Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
conf
project
public
test
.gitignore
Procfile
build.old_sbt
local_pub.rb
publisher.rb
reader.rb
readme.md
sbt
sbt-launch-0.11.0.jar
start.sh
start_app.sh
start_pub.sh

readme.md

Live Dashboard Hack

This is a simple hack that take a feed from one or more apache log files, and displays the 10 most accessed pages over the last 15 minutes.

To start

This uses ZeroMQ, which is a native library you need to install.

On Ubuntu do this with:

sudo apt-get install libzmq0 libzmq-dev

The publisher bit uses ruby, so you'll also need to install the gem:

sudo gem install zmq

On my version on Ubuntu (11.10) I get an error message like:

Invalid gemspec in [/var/lib/gems/1.8/specifications/foreman-0.25.0.gemspec]: invalid date format in specification: "2011-10-17 00:00:00.000000000Z"

In which case you need to follow the instructions at on Stack Overflow:

sudo gem install rubygems-update
sudo update_rubygems

Note this will effectively uninstall all your gems, so you'll need to repeat the gem install command above.

We use Foreman to startup all the apps, so install that with:

sudo gem install foreman

Then startup with:

./start.sh

Which will run foreman start in an infinite loop. Now go to http://localhost:5000 and enjoy.

Something went wrong with that request. Please try again.