https://github.com/statianzo/que-web
A web interface for the Que queue
https://github.com/statianzo/que-web
hacktoberfest postgresql rails ruby
Last synced: 3 months ago
JSON representation
A web interface for the Que queue
- Host: GitHub
- URL: https://github.com/statianzo/que-web
- Owner: statianzo
- License: bsd-3-clause
- Created: 2014-11-12T23:46:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T12:57:20.000Z (over 2 years ago)
- Last Synced: 2025-03-28T21:05:53.350Z (11 months ago)
- Topics: hacktoberfest, postgresql, rails, ruby
- Language: Ruby
- Homepage:
- Size: 568 KB
- Stars: 88
- Watchers: 10
- Forks: 50
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# que-web [](https://travis-ci.org/statianzo/que-web)
que-web is a web UI to the [Que](https://github.com/chanks/que) job queue.

## Installation
Add this line to your application's Gemfile:
```ruby
gem 'que-web'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install que-web
## Usage
#### With `config.ru`
Add in `config.ru`:
```ruby
require "que/web"
map "/que" do
run Que::Web
end
```
### Rails
In `config/routes.rb`:
```ruby
require "que/web"
mount Que::Web => "/que"
```
### Authentication
#### Devise
```ruby
# config/routes.rb
authenticate :user do
mount Que::Web, at: 'que'
end
```
#### Basic HTTP auth
In `config/initializers/queweb.rb`:
```ruby
Que::Web.use(Rack::Auth::Basic) do |user, password|
[user, password] == [ENV["QUEWEB_USERNAME"], ENV["QUEWEB_PASSWORD"]]
end
```
Then add the two environment variables to your production environment.
### Docker
Run:
```
docker run -e DATABASE_URL=postgres://username:password@hostname/db_name -p 3002:8080 joevandyk/que-web
```
Or use docker/Dockerfile to build your own container.