{"id":19293024,"url":"https://github.com/catarse/dbhero","last_synced_at":"2025-05-08T00:07:34.767Z","repository":{"id":29059269,"uuid":"32587078","full_name":"catarse/dbhero","owner":"catarse","description":"DBHero is a simple and elegant web interface to extract data clips from your app database. just plug and play ;)","archived":false,"fork":false,"pushed_at":"2024-06-13T00:24:07.000Z","size":257,"stargazers_count":58,"open_issues_count":41,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-08T00:07:22.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catarse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-20T14:03:59.000Z","updated_at":"2020-03-06T11:35:18.000Z","dependencies_parsed_at":"2023-02-10T21:31:15.987Z","dependency_job_id":null,"html_url":"https://github.com/catarse/dbhero","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catarse%2Fdbhero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catarse%2Fdbhero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catarse%2Fdbhero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catarse%2Fdbhero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catarse","download_url":"https://codeload.github.com/catarse/dbhero/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973690,"owners_count":21834108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:33:51.173Z","updated_at":"2025-05-08T00:07:34.724Z","avatar_url":"https://github.com/catarse.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DBHero [![Build Status](https://travis-ci.org/catarse/dbhero.svg?branch=master)](https://travis-ci.org/catarse/dbhero) [![Code Climate](https://codeclimate.com/github/catarse/dbhero/badges/gpa.svg)](https://codeclimate.com/github/catarse/dbhero) \n\nDBHero is a simple and elegant web interface to extract data clips from your app database. just plug and play ;)\n\ntested stack:\n- PostgresSQL\n- Ruby 2+\n- Rails 4.1+\n\n![Dbhero](http://i.imgur.com/k6pMWJ2.gif)\n\n\n## installation\n\n\ninclude in your Gemfile: \n\n```ruby\ngem 'dbhero'\n```\n\nthen run:\n\n\trails g dbhero:install\n\nThis will create an initializer in ```config/initializers/dbhero.rb```\nTake a look in this initializer to tweak the default attributes.\n\nand add on your routes file:\n```ruby\n mount Dbhero::Engine =\u003e \"/dbhero\", as: :dbhero\n```\nrun server and open ```http://localhost:3000/dbhero``` \n\n\n## Configurations\n\nOn initializer ```config/initializers/dbhero.rb``` we can add the following configurations\n\n```ruby\nDbhero.configure do |config|\n  # limits the total of rows that show on clips, if clip result os greather\n  # that result rows of query then should show a button to download csv\n  # this prevent that browser crashes :)\n  config.max_rows_limit = 10_000\n  # if you are using devise you can keep the \"authenticate_user!\"\n  config.authenticate = true\n\n  # Method to get the current user authenticated on your app\n  # if you are using devise you can keep the \"current_user\"\n  config.current_user_method = :current_user\n\n  # Custom authentication condition hover current_user_method\n  config.custom_user_auth_condition = lambda do |user|\n    user.admin?\n  end\n\n  # String representation for user\n  # when creating a dataclip just save on user field\n  config.user_representation = :email\n\n  # Google drive integration, uncomment to use ;)\n  # you can get you google api credentials here:\n  # https://developers.google.com/drive/web/auth/web-server\n  # google drive callback url -\u003e /dbhero/dataclips/drive\n  config.google_api_id = 'GOOGLE_API_ID'\n  config.google_api_secret = 'GOOGLE_API_SECRET'\nend\n\n```\n\n\nThis project rocks and uses MIT-LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatarse%2Fdbhero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatarse%2Fdbhero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatarse%2Fdbhero/lists"}