0.0
No release in over a year
Web UI for taskinator gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 5.0.0
>= 0.5.0
 Project Readme

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.