Rails 7 Vite React Template is a monolithic React / Ruby application. It uses Vite for faster development of the Frontend.
Backend
ruby 3.2.2
rails 7.0.6
postgresql
Frontend
Node v16
Vite
- First and foremost run
bundle install
andnpm install
to make everything tidy and green. Be mindful of the Node and Ruby versions, syntax might break if those are changed - Change all
change_me
andCHANGE_ME
occurences to your desired app name
npm install
bundle install
rails db:prepare
Start Vite dev server with:
./bin/vite dev
And Rails with:
bundle exec rails s
bundle rails db:prepare RAILS_ENV=test
bundle exec rspec
npm run test