This project is a starter kit for Rails 8 + Vite + React + TailwindCSS + shadcn/ui.
In this project, you can design pages using the conventional Rails approach with friendly SSR (server-side rendering), or you can build complex user interfaces using React, driven by react-router-dom for client-side routing.
- Ruby 3.3.4
- Rails 8.0 edge
- Node.js 20.x
Use EDITOR="code --wait"
to open/generate the credentials file config/credentials.yml.enc in VSCode.
credentials sample:
SECRET_KEY_BASE: 64 bytes hex string
bin/setup
bin/setup --update # Optional: Update dependencies
pnpm run build # Build the frontend into app/assets/builds
bin/rails server
bin/rails test
bin/rubocop -f github
-
2024-11-14: v1.0.0
- Initial release, with Rails 8.0, vite-rails, React, TailwindCSS, and shadcn/ui.
-
2024-11-15: v2.x (main branch)
- Removed vite-rails
- Change app/frontend to a single Vite project
- Rails app is now a main API server