{"id":16071103,"url":"https://github.com/fdv/rails-app-boilerplate","last_synced_at":"2025-11-17T14:35:35.002Z","repository":{"id":66531033,"uuid":"9397112","full_name":"fdv/rails-app-boilerplate","owner":"fdv","description":"A Rails application boilerplate","archived":false,"fork":false,"pushed_at":"2013-04-13T19:10:31.000Z","size":728,"stargazers_count":2,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T19:46:54.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fdv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-12T15:14:02.000Z","updated_at":"2014-05-28T05:31:22.000Z","dependencies_parsed_at":"2023-02-20T06:00:59.898Z","dependency_job_id":null,"html_url":"https://github.com/fdv/rails-app-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fdv/rails-app-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Frails-app-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Frails-app-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Frails-app-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Frails-app-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdv","download_url":"https://codeload.github.com/fdv/rails-app-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Frails-app-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284899410,"owners_count":27081594,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-09T07:22:09.413Z","updated_at":"2025-11-17T14:35:34.985Z","avatar_url":"https://github.com/fdv.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rails Application Boilerplate\n=============================\n\n[![Build Status](https://travis-ci.org/fdv/rails-app-boilerplate.png)](https://travis-ci.org/fdv/rails-app-boilerplate)\n[![Dependency Status](https://gemnasium.com/fdv/rails-app-boilerplate.png)](https://gemnasium.com/fdv/rails-app-boilerplate)\n[![Code Climate](https://codeclimate.com/github/fdv/rails-app-boilerplate.png)](https://codeclimate.com/github/fdv/rails-app-boilerplate)\n\nRails Application Boilerplate is a small, ready to code, Rails application. It was intended to avoid repeating the same process for every Rails project I start.\n\nIt provides:\n\n* A configured Rails application \n* A Twitter Bootstrap fluid layout\n* A full registration / authentication part\n* A few helpers to be used everywhere in the application\n* An application settings system\n* Rspec, Webrat and Factory Girl for testing\n\nThe idea came while discussing with my colleague and friend [Yann Moisan](https://github.com/YannMoisan) about hackatons and how some people actually bootstraped their application befor the event so they won't have to spend 10+ minutes building what can be easily done before. That's how I realized that I did the same thing for every project I start, this leading to never finished projects.\n\n# Application init\n\nFork or clone Rails App Boilerplate from Github:\n\n    $ git clone git://github.com/fdv/rails-app-boilerplate.git\n\nCopy config/database.yml.yourdatabase to config/database.yml and fill in your credential.\n\nThen run:\n\n    $ bundle install\n    $ rake db:create\n    $ rake db:migrate\n    $ rake db:seed\n    $ ./scripts/rails server\n\nNow, you can access your application in your Web browser at `127.0.0.1:3000`.\n\n# Playing with application settings\n\n`app.xxx`: calls the xxx application setting. Application params are stored in a serialized array so they can be added / removed without changing the data model.\n\nCalling `\u003c%= app.app_name_ %\u003e` in the views displays the application name.\n\nTo add new settings, edit app/models/app.rb, and call the setting method:\n\n```ruby\nsetting :some_setting,                  :string, 'Some value'\nsetting :numeric_setting,               :integer, 1\nsetting :boolean_setting,               :boolean, true\n```\n\nSettings type can be `string`, `integer`, `boolean`, `yaml` or `json`.\n\nThen you can set / get your settings like database fields.\n\n```ruby\napp = App.default\napp.foo = \"bar\"\napp.save\n```\n\nCreates the `foo` param for the application.\n\n`App.default` method loads the first and only App record from the database. App is created at application init.\n\n# Available helpers\n\n`page_header(title, tag='h1')`: displays a formated page title, using the `h1` tag by default.\n\n```html\n\u003cdiv class=\"page-header\"\u003e\n  \u003ch1\u003eSome title here\u003c/h1\u003e\n\u003c/div\u003e\n```\n\n`app.xxx` : calls the application setting xxx.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdv%2Frails-app-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdv%2Frails-app-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdv%2Frails-app-boilerplate/lists"}