This is a starter template for Rails developers who want to integrate Svelte into their applications without setting everything up from scratch. It provides a structured foundation with essential tools and libraries for building modern, reactive UIs within a Rails ecosystem.
git clone [email protected]:georgekettle/rails_svelte.git <your-repo-name>
cd <your-repo-name>
bundle install
npm install
rails db:setup
bin/dev
This template integrates Svelte with Rails using Inertia.js to manage front-end routing while keeping Rails' backend structure. It uses Vite for asset bundling, and all frontend code is located in the app/frontend
directory. Place assets such as images and fonts inside the app/frontend/assets
folder.
Feel free to fork this repository and submit pull requests with improvements, fixes, or additional features.
This project is open-source and available under the MIT License.