Skip to content

CharlieGroves/bath-hack-2026

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

196 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bath Hack 2026

A full-stack web app with a Rails 7.2 backend and React + Vite frontend.

Prerequisites

Install these before starting:

Setup

1. Clone the repo

git clone <repo-url>
cd bath-hack-2026

2. Backend (Rails)

cd backend

Install Ruby 3.4.4 via rbenv:

rbenv install 3.4.4
rbenv local 3.4.4
ruby -v  # should show 3.4.4

Install gems:

gem install bundler
bundle install

Set up Tailwind CSS:

bin/rails tailwindcss:install

Set up the database:

bin/rails db:prepare

Configure credentials — ask a teammate for the master.key and place it at backend/config/master.key (it is git-ignored).

3. Frontend (React + Vite)

cd ../frontend
npm install

Running locally

From the backend directory, run all services together:

bin/dev

This starts:

Process URL
Rails API http://localhost:3000
Vite (React frontend) http://localhost:5173
Sidekiq (background jobs)
Redis port 6381
Tailwind CSS watcher

Common issues

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 -v

Tailwind input file missing — if you see Specified input file ./app/assets/tailwind/application.css does not exist:

bin/rails tailwindcss:install

Rails version mismatch — if you see Unknown version "7.2", ensure the Gemfile specifies gem "rails", "~> 7.2.0" and run bundle install.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors