Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/donrestarone/rails_bun_react_tailwind_example

an example repo that bootstraps a Rails, React, and Tailwind application with Bun
https://github.com/donrestarone/rails_bun_react_tailwind_example

bun rails react react-query tailwind

Last synced: 3 months ago
JSON representation

an example repo that bootstraps a Rails, React, and Tailwind application with Bun

Awesome Lists containing this project

README

        

# README

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.

## setup

Install bun: https://webcrunch.com/posts/bun-with-ruby-on-rails

install dependencies
``` bash
bundle install
```
launch development server
``` bash
bin/dev
```

## research

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