{"id":22246018,"url":"https://github.com/tonystrawberry/template.rails.react.openapi","last_synced_at":"2026-04-11T12:03:39.026Z","repository":{"id":41816277,"uuid":"486014186","full_name":"tonystrawberry/template.rails.react.openapi","owner":"tonystrawberry","description":"🚀 Ready-to-use Rails7 API/ReactJS/OpenAPI monolithic web application template","archived":false,"fork":false,"pushed_at":"2022-11-12T06:32:58.000Z","size":3099,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T10:28:51.572Z","etag":null,"topics":["openapi","postgresql","rails","react","typescript"],"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/tonystrawberry.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":"2022-04-27T02:12:49.000Z","updated_at":"2023-08-21T00:22:26.000Z","dependencies_parsed_at":"2023-01-21T20:46:26.488Z","dependency_job_id":null,"html_url":"https://github.com/tonystrawberry/template.rails.react.openapi","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/tonystrawberry%2Ftemplate.rails.react.openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonystrawberry%2Ftemplate.rails.react.openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonystrawberry%2Ftemplate.rails.react.openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonystrawberry%2Ftemplate.rails.react.openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonystrawberry","download_url":"https://codeload.github.com/tonystrawberry/template.rails.react.openapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245450552,"owners_count":20617371,"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":["openapi","postgresql","rails","react","typescript"],"created_at":"2024-12-03T05:25:35.457Z","updated_at":"2026-04-11T12:03:38.947Z","avatar_url":"https://github.com/tonystrawberry.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://pbs.twimg.com/media/CZGHPChUAAA3jqE.png\" width=\"60\" /\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/6412038?s=280\u0026v=4\" width=\"60\" /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  Monolithic web application template with Rails \u0026 React\n\u003c/h1\u003e\n\n# 🚀 Rails 7 API / ReactJS / OpenAPI - Monolithic Web Application Template\n\nThis starter template will help you get started in a new full-stack web application.\n\n## 💾 Versions\n```\nRuby 3.1.2\nRails 7.0.2\nPG 13\n\nReact 18.1.0\nTypescript 4.6.3\n\nOpenAPI 3.0.3\n```\n\n## 📋 Features\n- [x] Rails API 7 (with Docker integration)\n- [x] PostgreSQL local database \u0026 settings\n- [x] [React Frontend (with Docker integration)](https://github.com/tonystrawberry/rails7-react-openapi-template/pull/2)\n- [ ] Support for JWT Token Authentication \u0026 Authorization\n- [ ] Support for OAuth2 Authentication\n- [x] [Client API code generation based on OpenAPI 3.0 schema definition](https://github.com/tonystrawberry/rails7-react-openapi-template/pull/2)\n- [x] [Rails-side test implementation (unit \u0026 controller)](https://github.com/tonystrawberry/rails7-react-openapi-template/pull/1)\n- [ ] SonarCloud property/settings file\n- [ ] Add annotation gem (make it optional)\n- [ ] Add parameters validation gem (make it optional)\n- [ ] Code coverage with SonarCloud\n- [ ] Add delight to the experience when all tasks are complete :tada:\n\n## 👨🏻‍💻 Local development\n\n```\ndocker-compose build\ndocker-compose run --rm backend bundle install\ndocker-compose run --rm backend rails db:create rails db:migrate db:seed \ndocker-compose up\n\ndocker-compose run --rm frontend npm install\ndocker-compose run --rm frontend npm run generate-api-client # generate API client code into `src/types/typescript-axios`\n\n```\n\n## 🛠 Access Rails console\n\n```\ndocker-compose run --rm backend rails c\n\n$ User.all # Fetch and show all users \n```\n\n## ❤️ Tests\n\n```\ndocker-compose run --rm backend /bin/bash\n\n$ RAILS_ENV=test rspec spec/ # Run all tests inside spec folder\n```\n\n## 👨🏻‍💻 Install gems\n\n1. Add the gem in the `Gemfile`.\n2. Run `docker-compose run --rm backend bundle install`\n\n## 👨🏻‍💻 Local URLs\n\nFrontend: `http://localhost:4000`.\nBackend: `http://localhost:3000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonystrawberry%2Ftemplate.rails.react.openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonystrawberry%2Ftemplate.rails.react.openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonystrawberry%2Ftemplate.rails.react.openapi/lists"}