Phobos Checkpoint UI
Phobos Checkpoint UI is a GUI for phobos checkpoint API. It is compatible with Phobos DB Checkpoint

Installation
Add this line to your application's Gemfile:
gem 'phobos_checkpoint_ui'
And then execute:
$ bundle
Or install it yourself as:
$ gem install phobos_checkpoint_ui
Usage
1) Add require 'phobos_checkpoint_ui/tasks' to your Rakefile
2) Run rake phobos_checkpoint_ui:copy_assets, this will copy the precompile assets to ./public
3) Create/update config.ru and add:
require 'phobos_checkpoint_ui'
# ...
# < keep the previous configurations >
# ...
# run PhobosDBCheckpoint::EventsAPI
run PhobosCheckpointUI::App.new(PhobosDBCheckpoint::EventsAPI)
It is possible to configure some aspects of the app, App.new accepts a hash with options to be delivered to the front-end. The fron-end is prepared to receive the following options:
logo- Path of image to be used as a logo (can be something inside/public)title- App titleenv_label- Special label display the environment
Example:
run PhobosCheckpointUI::App.new(PhobosDBCheckpoint::EventsAPI, {
logo: '/assets/logo.png',
title: 'Checkpoint',
env_label: 'production'
})
Development
The front-end is written with React and Redux, ensure that you have nodejs version >= 6.3 installed.
cd frontend
npm install
npm run test:unit #or npm run test:unit:watch to continuosly run the tests
Run rake spec to run the ruby tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/klarna/phobos_checkpoint_ui.
License
The gem is available as open source under the terms of the MIT License.