Sinatra-based dash app for batsd
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 65 commits behind mikeycgto:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
Gemfile
README.md
Rakefile
batsd-dash.gemspec

README.md

batsd-dash

Configurable dashboard for batsd-server.

Install

To install batsd-dash, simply install the gem

gem install batsd-dash

Configuration

Here is a sample rackup file (config.ru):

require 'batsd-dash'

# set batsd server setting
BatsdDash::ConnectionPool.settings = { host: 'localhost', port: 8127, pool_size: 4}

# run the app
run BatsdDash::App

Rack is very powerful. You can password protect your batsd-dash instance by using Rack::Auth::Basic or Rack::Auth::Digest::MD5.

Development

We use Sass for CSS within this project. If you make any changes to the Sass files, ensure you recompile the CSS. This is done by running:

compass compile --force --output-style compact --environment production --sass-dir lib/batsd-dash/sass --css-dir lib/public/css

Additionally, it is highly recommended you use thin for development since this app uses EventMachine.