Mountable Rails 3 Engine for Killbill Administration UI
Ruby JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
lib
script
test
vendor/assets
.gitignore
.travis.yml
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
kaui.gemspec

README.rdoc

Kaui

This project rocks and uses MIT-LICENSE.

Getting started

Running Kaui

You can run Kaui locally using the dummy app in the test directory:

# Point to your killbill installation
export KILLBILL_URL="http://killbill.company.com:8080"
cd test/dummy && rails s

Mounting Kaui into your own Rails app

Kaui expects the container app to define the current_user method, which returns the name of the logged-in user. This is used by Killbill for auditing purposes.

You also need to install validation.js into your asset pipeline.

Gem dependencies:

gem 'rest-client', '~> 1.6.7'
gem 'money-rails', '~> 0.5.0'

Running tests

Prepare a kaui_test database locally to be able to run the test suite:

create database kaui_test;
grant all privileges on kaui_test.* to 'root'@'localhost' identified by '';

You can run tests using rake:

rake test