{"id":15151320,"url":"https://github.com/israeldcastro/rails-api-template","last_synced_at":"2026-02-16T17:36:01.392Z","repository":{"id":239647056,"uuid":"800138126","full_name":"IsraelDCastro/rails-api-template","owner":"IsraelDCastro","description":"Create a Rails API app using VueJS/ReactJS as front, it is good to start a project. You can choose between Tailwind CSS + PrimeVue or Tailwind CSS + NextUI.","archived":false,"fork":false,"pushed_at":"2024-11-15T19:52:08.000Z","size":332,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T23:12:50.012Z","etag":null,"topics":["nextui","primevue","rails","rails-api","react","reactjs","ruby","starter-template","tailwindcss","template","vite","vitejs","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/IsraelDCastro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-05-13T19:16:26.000Z","updated_at":"2025-07-20T21:21:35.000Z","dependencies_parsed_at":"2025-08-22T22:33:44.118Z","dependency_job_id":"00410c28-7608-4e5f-9978-50de33121a6c","html_url":"https://github.com/IsraelDCastro/rails-api-template","commit_stats":null,"previous_names":["israeldcastro/rails-api-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IsraelDCastro/rails-api-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsraelDCastro%2Frails-api-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsraelDCastro%2Frails-api-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsraelDCastro%2Frails-api-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsraelDCastro%2Frails-api-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IsraelDCastro","download_url":"https://codeload.github.com/IsraelDCastro/rails-api-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsraelDCastro%2Frails-api-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278343079,"owners_count":25971399,"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-10-04T02:00:05.491Z","response_time":63,"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":["nextui","primevue","rails","rails-api","react","reactjs","ruby","starter-template","tailwindcss","template","vite","vitejs","vue","vuejs"],"created_at":"2024-09-26T15:01:19.340Z","updated_at":"2026-02-16T17:36:01.369Z","avatar_url":"https://github.com/IsraelDCastro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails API Template VueJS/ReactJS\n\nThis is a rails template with \u003ca href=\"https://vuejs.org/\" target=\"_blank\"\u003eVueJS\u003c/a\u003e or \u003ca href=\"https://react.dev/learn\" target=\"_blank\"\u003eReactJS\u003c/a\u003e. The frontend starters ship with \u003ca href=\"https://tailwindcss.com/\" target=\"_blank\"\u003eTailwind CSS\u003c/a\u003e plus the matching \u003ca href=\"https://www.npmjs.com/package/simplekit-vue\" target=\"_blank\"\u003eSimplekit Vue\u003c/a\u003e or \u003ca href=\"https://www.npmjs.com/package/simplekit-react\" target=\"_blank\"\u003eSimplekit React\u003c/a\u003e component suites.\n\nThis is the best option to start a project with Rails 7 API + VueJS/ReactJS. You can make a fast project and start working on it without any problem. Now you can choose between Tailwind CSS + Simplekit Vue (For VueJS) or Tailwind CSS + Simplekit React (For ReactJS), both configured with TypeScript out of the box.\n\nThis template starts with Active Storage by default when you create it. If you don't want, just remove it.\n\n### JS Frameworks\n\n- `VueJS 3` to start a project with VueJS just add the flag `--vue` to command line.\n- `ReactJS 19` to start a project with ReactJS just add the flag `--react` to command line.\n\n### CSS Frameworks\n\n- `template.rb` has \u003ca href=\"https://tailwindcss.com/\" target=\"_blank\"\u003eTailwind CSS\u003c/a\u003e as default Framework CSS. [Start](https://github.com/IsraelDCastro/rails-vite-tailwindcss-template#rails-tailwind-css-template)\n\n## Installation\n\nMake sure you have `vips` in your brew list, or run `brew install vips`\n\n## Rails 7 + VueJS 3 + ViteJS + Tailwind CSS + Simplekit Vue\n\n##### From GitHub with vue\n\n```bash\nrails new my_app --api -d \u003cdatabase_you_want\u003e -m https://raw.githubusercontent.com/IsraelDCastro/rails-api-template/master/template.rb --vue\n```\n\n##### Making a git clone of the project with vue\n\n```bash\nrails new my_app --api -d \u003cdatabase_you_want\u003e -m template.rb --vue\n```\n\nWhen you clone the repo just be sure to be inside the project when you run the command, from outside be sure to put the correct file direction `./template-api/template.rb`.\n\n## Rails 7 + ReactJS 19 + ViteJS + Tailwind CSS + Simplekit React\n\n##### From GitHub with react\n\n```bash\nrails new my_app --api -d \u003cdatabase_you_want\u003e -m https://raw.githubusercontent.com/IsraelDCastro/rails-api-template/master/template.rb --react\n```\n\n##### Making a git clone of the project with react\n\n```bash\nrails new my_app --api -d \u003cdatabase_you_want\u003e -m template.rb --react\n```\n\nWhen you clone the repo just be sure to be inside the project when you run the command, from outside be sure to put the correct file direction `./template-api/template.rb`.\n\n### Default Vue/React dependencies\n\n\u003e - simplekit-vue (Only with flag `--vue`)\n\u003e - vue (Only with flag `--vue`)\n\u003e - vue-router (Only with flag `--vue`)\n\u003e ---\n\u003e - react (Only with flag `--react`)\n\u003e - react-dom (Only with flag `--react`)\n\u003e - simplekit-react (Only with flag `--react`)\n\n---\n\n### Default VueJS dev dependencies\n\n\u003e - typescript\n\u003e - vue-tsc\n\u003e - @vitejs/plugin-vue\n\u003e - autoprefixer\n\u003e - eslint\n\u003e - eslint-config-prettier\n\u003e - eslint-plugin-prettier\n\u003e - eslint-plugin-vue\n\u003e - path\n\u003e - postcss\n\u003e - prettier\n\u003e - tailwindcss\n\u003e - vite\n\n### Default ReactJS dev dependencies\n\n\u003e - typescript\n\u003e - @types/react\n\u003e - @types/react-dom\n\u003e - eslint\n\u003e - eslint-plugin-tailwindcss (Only the template with Tailwind CSS has this package).\n\u003e - path\n\u003e - prettier\n\u003e - eslint-plugin-prettier\n\u003e - eslint-config-prettier\n\u003e - vite\n\u003e - autoprefixer\n\u003e - postcss\n\u003e - tailwindcss\n\u003e - @vitejs/plugin-react-refresh (Only with flag `--react`)\n\u003e - eslint-plugin-react (Only with flag `--react`)\n\n### Default gems\n\n\u003e - gem \"image_processing\", \"~\u003e 1.2\"\n\u003e - gem 'ruby-vips', '~\u003e 2.1', '\u003e= 2.1.4'\n\u003e - gem \"rack-cors\"\n\u003e - gem 'jwt'\n\u003e - gem 'bcrypt', '~\u003e 3.1.18'\n\u003e - gem \"annotate\", group: :development\n\u003e - gem 'solargraph', group: :development\n\n## QA / Automatización\n\nLos módulos incluyen scripts listos para validar el estado del proyecto:\n\n| Proyecto                | Lint / formato                           | Tipos / pruebas rápidas            |\n|------------------------|-------------------------------------------|------------------------------------|\n| `modules/react-front`  | `bun run lint`                            | `bun run typecheck`                |\n| `modules/vue-front`    | `bun run lint`                            | `bun run typecheck`                |\n| Rails API              | `bin/rails test` (o `rspec`)              | `bin/rails test` / `bundle exec rspec` |\n\n\u003e Recomendado: crear un workflow de GitHub Actions que ejecute los comandos anteriores en cada push/PR (ver `docs/boilerplate-foundations.md`).\n\n### Analítica y SEO\n\n- Ambos frontends exponen un helper de SEO (React `Seo`, Vue `useSeo`) que actualiza títulos, descripciones, enlaces canónicos y JSON-LD.\n- Para habilitar el script de Plausible, define la variable `VITE_PLAUSIBLE_DOMAIN` en cada módulo (por ejemplo, `example.com`). El script se ignora si la variable no existe.\n\n### Thank you ⭐️\n\nIf you have any questions, just make an issue, I'll answer you as soon as possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisraeldcastro%2Frails-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisraeldcastro%2Frails-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisraeldcastro%2Frails-api-template/lists"}