Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.28 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.28 KB

TaskinatorUi

Web interface for taskinator gem. It also allows to see the workflows and enqueue a workflow from a specific place.

Installation

Add this line to your application's Gemfile:

gem "taskinator_ui"

And then execute:

$ bundle

Or install it yourself as:

$ gem install taskinator_ui

Then add this line into config/routes.rb

mount TaskinatorUi::Engine, at: '/taskinator'

Run rails server and navigate to http://localhost:3000/taskinator/

HTTP Basic Auth

To add basic auth add the line into initializer:

# config/initializers/taskinator.rb

TaskinatorUi.http_basic_auth = ->(user, password) { user == 'username' && password == 'password' }

You can use your database if needed:

TaskinatorUi.http_basic_auth = ->(email, password) { User.admin.find_by(email: email)&.authenticate(password) }

Known issues

If you use Rails in API only mode it can happen that you have Rack::MethodOverride middleware disabled. This middleware needed to route HTML form requests. To fix the problem add this line into config/application.rb

config.middleware.use Rack::MethodOverride

License

The gem is available as open source under the terms of the MIT License.