{"id":21956606,"url":"https://github.com/rmcfadzean/rails-docker-template","last_synced_at":"2026-04-11T11:02:06.125Z","repository":{"id":144795061,"uuid":"79721233","full_name":"rmcfadzean/rails-docker-template","owner":"rmcfadzean","description":"A Rails bootstraping template including Docker","archived":false,"fork":false,"pushed_at":"2018-03-10T02:19:57.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T23:31:58.406Z","etag":null,"topics":["docker","docker-compose","rails","rails-docker","rails-template","ruby-on-rails"],"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/rmcfadzean.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-22T14:04:18.000Z","updated_at":"2017-01-22T16:10:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"08dc4276-bb40-4f4c-9aa7-ef597c8e8691","html_url":"https://github.com/rmcfadzean/rails-docker-template","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/rmcfadzean%2Frails-docker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmcfadzean%2Frails-docker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmcfadzean%2Frails-docker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmcfadzean%2Frails-docker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmcfadzean","download_url":"https://codeload.github.com/rmcfadzean/rails-docker-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245009018,"owners_count":20546435,"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":["docker","docker-compose","rails","rails-docker","rails-template","ruby-on-rails"],"created_at":"2024-11-29T08:35:44.505Z","updated_at":"2026-04-11T11:02:01.087Z","avatar_url":"https://github.com/rmcfadzean.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Docker Template [WIP]\n\nA Rails template for generating a clean, new Rails (API) project with Docker, docker-compose, rspec and some nice defaults.\n\n## Notes / Requirements\n\n* This is **very** opinionated.\n* Rails \u003e= 5.0.0\n* Ruby 2.5.0\n* `--api` only\n\n## Usage\n\n### Installation\n\n```sh\nrails new my_unicorn \\\n  -d postgresql \\\n  --api \\\n  -m https://raw.githubusercontent.com/rmcfadzean/rails-docker-template/master/template.rb\n```\n\n### Using the application\n\n#### Development\n\n`docker-compose run web rails db:create`\n\n#### Testing\n\n`docker-compose run web rspec`\n\n#### Deploying\n\nTODO\n\n## The opinions\n\n* Testing is done with Rspec \u0026 Rack::Test\n  * Controller tests are [out](https://github.com/rails/rails/issues/18950#issuecomment-77924771)\n  * Integration/request/API tests are in\n* Docker \u0026 Docker compose are used for a containerised application\n\n### Gem List\n\n* Core\n  * rails 5.1.5\n  * ruby 2.5.0\n  * postgres\n  * puma\n  * rack-cors - [Cross-origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)\n  * [health_check](https://github.com/ianheggie/health_check) - Creates a `_health` canary endpoint.\n  * jbuilder\n* Testing\n  * rspec-rails\n  * webmock - Stop hitting real endpoints! You're testing your application, not theirs.\n  * factory_girl_rails - Boo fixtures. Yay factories!\n  * timecop - Allows you to timetravel during your tests\n  * simplecov - Test coverage checker\n  * [faker](https://github.com/stympy/faker) - Generating fake data\n* Debugging\n  * awesome_print - `ap @object` will print out things in a nice way to help with puts debugging\n  * pry-rails - `binding.pry` will save your life\n  * bullet - Helps with finding N+1 queries\n  * [sentry](https://sentry.io) - catch and log your errors.\n* Security \u0026 Style\n  * rubocop - A style checker with an autofixer. Keep your code clean and readable!\n  * brakeman - Static analysis for security vulns \u0026 bad practice.\n  * bundler-audit - Checks your gemfile for known vulnerabilities\n* Utils\n  * annotate - Annotates your models, routes and factories with schema comments. Helpful for at-a-glance checks.\n\n## Credits\n\n* [Suspenders](https://github.com/thoughtbot/suspenders/)\n* [jkxyz/rails-docker-template](https://github.com/jkxyz/rails-docker-template)\n* [mattbrictson/rails-template](https://github.com/mattbrictson/rails-template)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmcfadzean%2Frails-docker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmcfadzean%2Frails-docker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmcfadzean%2Frails-docker-template/lists"}