{"id":13747715,"url":"https://github.com/tomas/bowtie","last_synced_at":"2025-09-22T03:39:14.517Z","repository":{"id":810001,"uuid":"517332","full_name":"tomas/bowtie","owner":"tomas","description":"Simple admin interface for MongoMapper (mongo) \u0026 DataMapper (dm) models.","archived":false,"fork":false,"pushed_at":"2012-04-19T00:45:08.000Z","size":796,"stargazers_count":50,"open_issues_count":3,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-14T15:20:19.015Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-14T07:00:24.000Z","updated_at":"2020-10-24T15:04:59.000Z","dependencies_parsed_at":"2022-08-16T11:00:16.517Z","dependency_job_id":null,"html_url":"https://github.com/tomas/bowtie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas%2Fbowtie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas%2Fbowtie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas%2Fbowtie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas%2Fbowtie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomas","download_url":"https://codeload.github.com/tomas/bowtie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847061,"owners_count":20357317,"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-08-03T06:01:38.999Z","updated_at":"2025-09-22T03:39:09.470Z","avatar_url":"https://github.com/tomas.png","language":"Ruby","funding_links":[],"categories":["Ruby","ORM"],"sub_categories":[],"readme":"## Bowtie: Simple admin scaffold for your MongoMapper \u0026 DataMapper models\n\nBowtie reads the information on your models and creates a nice panel in which you can view, edit and destroy records easily.\n\n## How does it look?\n\nGlad you asked:\n\n![Bowtie!](https://github.com/tomas/bowtie/raw/master/screenshot.png)\n\n## Installation\n\nInclude it in your Gemfile and update your bundle:\n\n    source 'rubygems.org'\n    ..\n    gem 'bowtie'\n  \nOr install it by hand:\n\n    $ (sudo) gem install bowtie\n\n## Configuration\n\n### Sinatra\nMount Bowtie wherever you want by editing your `config.ru` file, after loading your models. You can optionally include the admin/pass combination for the panel.\n\n    require 'my_app' # models are loaded\n    require 'bowtie'\n\n    map \"/admin\" do\n      BOWTIE_AUTH = {:user =\u003e 'admin', :pass =\u003e '12345'}\n      run Bowtie::Admin\n    end\n\n    map '/' do\n      run MyApp\n    end\n\n### Rails 3\nMount Bowtie in your `config/routes.rb` file with the new Rails 3 mount function. You can also optionally include the admin/pass combination for the panel.\n\n    Rails::Application.routes.draw.do\n        # your other routes\n        BOWTIE_AUTH = {:user =\u003e 'admin', :pass =\u003e '12345'}\n        mount Bowtie::Admin, :at =\u003e '/admin'\n    end\n\nAdditionally you need to make sure that all models have been loaded because Rails only models them on demand and Bowtie only sees loaded models. Paste this into a new initializer `config/initializers/bowtie.rb`\n\n    Dir[Rails.root + 'app/models/**/*.rb'].each do |path|\n        require path\n    end\n\n### Try it out!\nNow you can go to /admin in your app's path and try out Bowtie using your user/pass combination. If not set, it defaults to admin/bowtie.\n\n## Important notes\n\nBowtie requires a few gems but they're not included in the gemspec to prevent forcing your from installing unneeded gems. Therefore you need to make sure that Bowtie will have the following gems to work with: \n\nFor MongoMapper models:\n \n * mongo_mapper\n * bson_ext (not required, but recommended)\n\nFor DataMapper models: \n\n * dm-core\n * dm-validations\n * dm-aggregates\n * dm-pager\n\nNote: From version 0.3, Bowtie is meant to be used from DataMapper 1.0.0 on. For previous versions of DM please install with -v=0.2.5.\n\n## Copyright\n\n(c) 2010-2012 - Tomás Pollak for Fork Ltd. Released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomas%2Fbowtie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomas%2Fbowtie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomas%2Fbowtie/lists"}