an example repo that bootstraps a Rails, React, and Tailwind application with Bun
https://github.com/user-attachments/assets/4820b7be-0af2-4c82-853f-03993689e7d7
This repository is a template that shows how to integrate Rails, React, and Tailwind using Bun.
Install bun: https://webcrunch.com/posts/bun-with-ruby-on-rails
install dependencies
bundle install
launch development server
bin/dev
Install bun: https://webcrunch.com/posts/bun-with-ruby-on-rails
If you get an error related to missing hotwired/stimulus: https://github.com/rails/rails/issues/44182#issuecomment-1032409489
If you get an error related to missing tailwind dependencies: https://tailwindcss.com/docs/guides/ruby-on-rails
Install react and rails: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-ruby-on-rails-v7-project-with-a-react-frontend-on-ubuntu-20-04
If hot-reloading doesn’t work for the react frontend: https://stackoverflow.com/questions/74934630/rails-7-compiling-assets-with-different-folder-structure
If Rails complains of missing application.css in asset pipeline: https://stackoverflow.com/a/74899864