{"id":13777012,"url":"https://github.com/c7/hazel","last_synced_at":"2025-05-11T10:31:31.184Z","repository":{"id":56876097,"uuid":"1079776","full_name":"c7/hazel","owner":"c7","description":"A simple Sinatra app generator, heavily based on snfn.","archived":false,"fork":false,"pushed_at":"2015-11-22T22:51:02.000Z","size":749,"stargazers_count":91,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-25T22:02:41.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://c7.github.com/hazel/","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/c7.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":"2010-11-14T23:29:22.000Z","updated_at":"2024-03-17T14:16:17.000Z","dependencies_parsed_at":"2022-08-20T23:10:22.409Z","dependency_job_id":null,"html_url":"https://github.com/c7/hazel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c7%2Fhazel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c7%2Fhazel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c7%2Fhazel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c7%2Fhazel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c7","download_url":"https://codeload.github.com/c7/hazel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253551782,"owners_count":21926359,"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-03T18:00:36.361Z","updated_at":"2025-05-11T10:31:27.631Z","avatar_url":"https://github.com/c7.png","language":"Ruby","funding_links":[],"categories":["Generators","Ruby"],"sub_categories":[],"readme":"![Hazel](http://c7.github.com/hazel/images/hazel_small.png)\n\nA simple Sinatra app generator, heavily based on [snfn](https://github.com/zachpendleton/snfn).\n\n![Using Hazel](http://c7.github.com/hazel/images/using_hazel.gif)\n\n## Installation\n\n    gem install hazel\n\n## Configuration\n\n* `--capistrano` Include Capistrano\n* `-d` Database. Options are \"postgres,\" \"mysql,\" \"sqlite\", and \"mongo.\"\n   Default is \"\"\n* `--redis` Include Redis configuration options.\n* `--rvm` Create .ruby-version (ruby-2.1.0) and .ruby-gemset\n* `--bundle` Run bundle after generating the app\n* `--git` Initialize a Git repository\n\n## Example\n\nStandard app, using sqlite.\n\n    hazel my_app\n\nApp using MySQL and Redis.\n\n    hazel my_app -d mysql --redis\n\nApp using MongoDB and Redis, then run bundle install.\n\n    hazel my_app -d mongo --redis --bundle\n\nApp using Redis, RVM, and Git repo\n\n    hazel my_app --redis --rvm --git-repo\n\nAfter Hazel is done generating an app, you can `cd` into your apps\ndirectory and `rackup`\n\n    cd my_app; rackup\n\n## Architecture\n\nThe template autoloads files in config/initializers and\n/lib. Database configuration options are stored in `config/db.yml`\nand are loaded via `config/initializers/database.rb`.\n\n## DB Setup\n\n[Sequel](http://sequel.rubyforge.org) is used as an ORM for\nrelational databases, and migrations are stored in db/migrate.\nMigrations can be run using the rake command `rake db:migrate`.\n\n[mongodb_model](https://github.com/alexeypetrushin/mongodb_model)\nis used for Mongo apps, with the config options\nstored in the same files as relational databases (`config/db.yml`\nand `config/initializers/database.rb`).\n\n### More information\n\n*  [Sequel Migrations](http://sequel.rubyforge.org/rdoc/files/doc/migration_rdoc.html)\n*  [Sequel Models](http://sequel.rubyforge.org/rdoc/classes/Sequel/Model.html)\n\n## License\n\n    Copyright (c) 2014 Peter Hellberg\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    \"Software\"), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc7%2Fhazel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc7%2Fhazel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc7%2Fhazel/lists"}