{"id":17817888,"url":"https://github.com/0xtheprodev/rails-clean-example","last_synced_at":"2025-07-25T08:10:05.670Z","repository":{"id":164373779,"uuid":"619063959","full_name":"0xTheProDev/rails-clean-example","owner":"0xTheProDev","description":"Clean Architecture Example using Ruby on Rails framework","archived":false,"fork":false,"pushed_at":"2023-05-12T11:24:59.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T09:14:14.477Z","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/0xTheProDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"0xTheProDev"}},"created_at":"2023-03-26T06:36:51.000Z","updated_at":"2023-05-12T09:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"70979b48-808f-455f-94cc-f2e49b5abd08","html_url":"https://github.com/0xTheProDev/rails-clean-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/0xTheProDev/rails-clean-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Frails-clean-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Frails-clean-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Frails-clean-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Frails-clean-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xTheProDev","download_url":"https://codeload.github.com/0xTheProDev/rails-clean-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Frails-clean-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266978045,"owners_count":24015488,"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-07-25T02:00:09.625Z","response_time":70,"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-27T16:46:35.766Z","updated_at":"2025-07-25T08:10:05.639Z","avatar_url":"https://github.com/0xTheProDev.png","language":"Ruby","funding_links":["https://github.com/sponsors/0xTheProDev"],"categories":[],"sub_categories":[],"readme":"# rails-clean-example\n\n[![Ruby](https://img.shields.io/badge/ruby-%23CC342D.svg?style=for-the-badge\u0026logo=ruby\u0026logoColor=white)](https://www.ruby-lang.org/)\n[![Rails](https://img.shields.io/badge/ruby%20on%20rails-%23CC0000.svg?style=for-the-badge\u0026logo=rubyonrails\u0026logoColor=white)](https://www.rubyonrails.org/)\n[![Puma](https://img.shields.io/badge/puma-%23242B2F.svg?style=for-the-badge\u0026logo=puma\u0026logoColor=black)](https://puma.io/)\n[![OpenAPI](https://img.shields.io/badge/openapi-6BA539?style=for-the-badge\u0026logo=openapi-initiative\u0026logoColor=fff)](https://www.openapis.org/)\n[![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge\u0026logo=swagger\u0026logoColor=white)](https://swagger.io/)\n[![GraphQL](https://img.shields.io/badge/-GraphQL-E10098?style=for-the-badge\u0026logo=graphql\u0026logoColor=white)](https://graphql.org/)\n[![RuboCop](https://img.shields.io/badge/rubocop-%23000000.svg?style=for-the-badge\u0026logo=rubocop\u0026logoColor=white)](https://www.rubocop.org/)\n[![Open Issues](https://img.shields.io/github/issues-raw/0xTheProDev/rails-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/rails-clean-example/issues)\n[![Closed Issues](https://img.shields.io/github/issues-closed-raw/0xTheProDev/rails-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/rails-clean-example/issues?q=is%3Aissue+is%3Aclosed)\n[![Open Pulls](https://img.shields.io/github/issues-pr-raw/0xTheProDev/rails-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/rails-clean-example/pulls)\n[![Closed Pulls](https://img.shields.io/github/issues-pr-closed-raw/0xTheProDev/rails-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/rails-clean-example/pulls?q=is%3Apr+is%3Aclosed)\n[![Contributors](https://img.shields.io/github/contributors/0xTheProDev/rails-clean-example?style=for-the-badge)](https://github.com/0xTheProDev/rails-clean-example/graphs/contributors)\n[![Activity](https://img.shields.io/github/last-commit/0xTheProDev/rails-clean-example?style=for-the-badge\u0026label=most%20recent%20activity)](https://github.com/0xTheProDev/rails-clean-example/pulse)\n\n## Description\n\n_Example Application Interface using Rails framework in Ruby_\n\nThis example showcases Repository Pattern in Hexagonal Architecture _(also known as Clean Architecture)_. Here we have two Entities - Books and Authors, whose relationships have been exploited to create CRUD endpoint in REST under OpenAPI standard.\n\n## Installation\n\n- Install all the project dependency:\n\n  ```sh\n  $ bundle install\n  ```\n\n- Run the application:\n\n  ```sh\n  $ bundle exec rails s\n\n## Testing\n\n- Run test suite along with Coverage reporting:\n\n  ```sh\n  $ bundle exec rspec spec\n  ```\n\n## Swagger UI\n\n- Generate OpenAPI specifications from RSpec:\n\n  ```sh\n  $ RAILS_ENV=test bundle exec rails rswag\n  ```\n\n- Open Swagger UI at `localhost:3000/api-docs` after running the application.\n\n## License\n\n\u0026copy; MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Frails-clean-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtheprodev%2Frails-clean-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Frails-clean-example/lists"}