{"id":17681615,"url":"https://github.com/kieranp/rails-graphql-svelte","last_synced_at":"2025-05-07T01:43:51.703Z","repository":{"id":53705875,"uuid":"320506160","full_name":"KieranP/rails-graphql-svelte","owner":"KieranP","description":"A starter template for a Rails+GraphQL API and Svelte frontend.","archived":false,"fork":false,"pushed_at":"2025-05-02T10:42:18.000Z","size":9303,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-02T11:44:05.080Z","etag":null,"topics":["bootstrap","graphql","jwt","rails","ruby-on-rails","svelte","sveltekit"],"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/KieranP.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-11T07:58:02.000Z","updated_at":"2025-05-02T10:42:23.000Z","dependencies_parsed_at":"2024-03-24T08:31:30.449Z","dependency_job_id":"cadf938a-dc7b-4036-8294-e4abf71b92aa","html_url":"https://github.com/KieranP/rails-graphql-svelte","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranP%2Frails-graphql-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranP%2Frails-graphql-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranP%2Frails-graphql-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranP%2Frails-graphql-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KieranP","download_url":"https://codeload.github.com/KieranP/rails-graphql-svelte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798539,"owners_count":21805876,"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":["bootstrap","graphql","jwt","rails","ruby-on-rails","svelte","sveltekit"],"created_at":"2024-10-24T09:11:41.214Z","updated_at":"2025-05-07T01:43:51.681Z","avatar_url":"https://github.com/KieranP.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starter Template: Rails + GraphQL + Svelte\n\nThis repo contains a starter template for a Rails+GraphQL API and SvelteKit frontend.\n\n## Features\n\n### Backend\n\nThe backend is powered by Ruby on Rails, with a GraphQL API.\n\nIt includes a secure JWT \u0026 2FA authentication system, and authorisation using Pundit.\n\nIt is pre-wired with ActionCable/SolidCable for Websockets, and ActiveJob/SolidQueue for Background Processing.\n\nIt uses RSpec and Capybara for feature tests, and Rubocop/Brakeman for code analysis/quality.\n\nIt contains a basic config for Github Actions.\n\n### Frontend\n\nThe frontend is powered by SvelteKit, and compiled using Vite.\n\nRouting is handled by SvelteKit, and API requests made using Apollo.\n\nStyling is provided by Bootstrap, and websockets via ActionCableJS.\n\nIt uses Prettier and ESLint +plugins for code analysis/quality.\n\nFrontend runtime via Bun. Dependencies managed by Yarn.\n\n## Usage\n\n* Clone Git Repo\n* Adjust `config/database.yml`\n* `bundle install`\n* `yarn install`\n* `bin/rake db:setup`\n* `bin/rspec`\n* `overmind start` (or `foreman`, `hivemind`, etc)\n* Open https://app.localhost\n\n## File Structure\n\n### Backend\n\nThe backend is powered by a standard Ruby on Rails app. The only exception is that Sprockets is not included for asset management and there are no Rails views templates. All HTML/CSS/JS compilation is handled by Vite.\n\n### Frontend\n\nWhen Vite runs, it clears the contents of `/public`, then takes the contents of `/app/frontend` and compiles them together into `/public`. The result is a frontend application that is embedded into a Ruby on Rails app for ease of development, whilst still being able to be extracted and deployed to a CDN for production. Frontend configs are managed via `vite.config.js` and `svelte.config.js`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieranp%2Frails-graphql-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkieranp%2Frails-graphql-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieranp%2Frails-graphql-svelte/lists"}