https://github.com/seekingalpha/taskinator_ui
https://github.com/seekingalpha/taskinator_ui
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/seekingalpha/taskinator_ui
- Owner: seekingalpha
- License: mit
- Created: 2022-12-24T13:46:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T10:05:57.000Z (about 3 years ago)
- Last Synced: 2025-03-27T09:45:49.879Z (about 1 year ago)
- Language: Ruby
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this 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:
```ruby
gem "taskinator_ui"
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ gem install taskinator_ui
```
Then add this line into `config/routes.rb`
```ruby
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:
```ruby
# config/initializers/taskinator.rb
TaskinatorUi.http_basic_auth = ->(user, password) { user == 'username' && password == 'password' }
```
You can use your database if needed:
```ruby
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`
```ruby
config.middleware.use Rack::MethodOverride
```
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).