A full-stack web app with a Rails 7.2 backend and React + Vite frontend.
Install these before starting:
- rbenv — Ruby version manager
- Node.js (v18+) and npm
- Redis —
brew install redis - PostgreSQL —
brew install postgresql@16
git clone <repo-url>
cd bath-hack-2026cd backendInstall Ruby 3.4.4 via rbenv:
rbenv install 3.4.4
rbenv local 3.4.4
ruby -v # should show 3.4.4Install gems:
gem install bundler
bundle installSet up Tailwind CSS:
bin/rails tailwindcss:installSet up the database:
bin/rails db:prepareConfigure credentials — ask a teammate for the master.key and place it at backend/config/master.key (it is git-ignored).
cd ../frontend
npm installFrom the backend directory, run all services together:
bin/devThis starts:
| Process | URL |
|---|---|
| Rails API | http://localhost:3000 |
| Vite (React frontend) | http://localhost:5173 |
| Sidekiq (background jobs) | — |
| Redis | port 6381 |
| Tailwind CSS watcher | — |
Wrong Ruby version — if you see Your Ruby version is X.X.X, but your Gemfile specified 3.4.4:
cd backend
rbenv local 3.4.4
ruby -vTailwind input file missing — if you see Specified input file ./app/assets/tailwind/application.css does not exist:
bin/rails tailwindcss:installRails version mismatch — if you see Unknown version "7.2", ensure the Gemfile specifies gem "rails", "~> 7.2.0" and run bundle install.