This example app has a Vite, React and Rails setup for people who are looking to create Rails apps with a similar set up. A step by step tutorial can be found here: https://medium.com/@chowjiaying211/creating-a-react-rails-and-vite-app-74bb9b08a011
To run this app, run the following commands:
bundle install
bundle exec vite install
rails db:create
rails db:migrate
rails s #starts a Rails server
npm run dev # starts a Vite dev server