Coder Social home page Coder Social logo

deebee's Introduction

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.

deebee's People

Contributors

rafbm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deebee's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.