Awesome
Inertia on Rails Template
This is a minimal installation of Ruby on Rails, Vite, and InertiaJS. (It also uses the Tailwind Play CDN for some simple styling). Feel free to fork this and use it for your next spike, mvp, or entire application. If you'd like to take a look around to see how everything is working, I'd recommend checking out the following files:
app/frontend/pages/Dashboard.jsx
: The React component being rendered by the/
routeapp/controllers/dashboard_controller.rb
: The controller that handled rendering the root pageapp/frontend/components/Layout.jsx
: The React component providing the "magic" layout similar to Rails's application layoutapp/frontend/entrypoints/application.jsx
: The Vite entrypoint that handles initializing InertiaJS
To run locally:
bundle install
npm install
foreman -f Procfile.dev