Project

deebee

0.0
No commit activity in last 3 years
No release in over 3 years
Deebee is a convenient and fast web interface for your DB. As a Sinatra app, it can be used standalone or mounted within your Rails app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 3.0
>= 1.2
 Project Readme

Deebee — Web client for your DB

Deebee is a convenient and fast web interface for your DB. As a Sinatra app, it can be used standalone or mounted within your Rails app.

Rails setup

Just like Rails itself, Deebee first tries to connect to the DATABASE_URL environment variable, then fallbacks to database.yml.

# Gemfile
gem 'deebee'
# config/routes.rb
mount Deebee::App => '/deebee'

Authentication

The preferred way of securing Deebee is through HTTP basic auth:

# config/initializers/deebee.rb
unless Rails.env.development?
  Deebee::App.use Rack::Auth::Basic do |username, password|
    username == 'username' && password == 'password'
  end
end

ActiveAdmin users can also take advantage of existing admin_users:

# config/initializers/deebee.rb
unless Rails.env.development?
  Deebee::App.use Rack::Auth::Basic do |email, password|
    if user = AdminUser.where(email: email).first
      BCrypt::Password.new(user.encrypted_password) == password
    end
  end
end

Standalone usage

For standalone use (dead-simple deployment on Heroku), see http://github.com/rafBM/deebee/tree/master/examples/standalone

TODO

  • UPDATE + INSERT functionality
  • Sorting
  • Filtering

© 2013 Rafaël Blais Masson. Deebee is released under the MIT license.