Set up the Rails application foundation #1

Merged
allanjsouza merged 5 commits from setup/rails-foundation into main 2026-06-08 00:38:51 +00:00
Owner

Summary

Establishes the Rails 8 application foundation for the Characterization Tool for Git Workflows.

  • Rails 8.1 + PostgreSQL app generated (preserving existing docs/config via --skip).
  • PostgreSQL runs via docker-compose.yml (postgres:17); config/database.yml connects through env vars with localhost defaults.
  • TailwindCSS installed and compiling (verified utilities are served).
  • Hotwire (importmap, Turbo, Stimulus) wired up per PRD 10.1/10.2.
  • RSpec configured as the test framework with a home-page smoke spec.
  • Basic application layout with a navbar partial and a Pages#home root page.
  • gitea-cli project skill added.

Test plan

  • bin/rails db:create / db:migrate / db:reset
  • App boots locally (/up and / return 200)
  • Tailwind utilities present in served CSS
  • bundle exec rspec — 1 example, 0 failures
  • bin/ci — all steps green (Setup, Rubocop, Gem audit, Importmap audit, Brakeman)
## Summary Establishes the Rails 8 application foundation for the Characterization Tool for Git Workflows. - **Rails 8.1 + PostgreSQL** app generated (preserving existing docs/config via `--skip`). - **PostgreSQL** runs via `docker-compose.yml` (postgres:17); `config/database.yml` connects through env vars with localhost defaults. - **TailwindCSS** installed and compiling (verified utilities are served). - **Hotwire** (importmap, Turbo, Stimulus) wired up per PRD 10.1/10.2. - **RSpec** configured as the test framework with a home-page smoke spec. - Basic application layout with a navbar partial and a `Pages#home` root page. - `gitea-cli` project skill added. ## Test plan - [x] `bin/rails db:create` / `db:migrate` / `db:reset` - [x] App boots locally (`/up` and `/` return 200) - [x] Tailwind utilities present in served CSS - [x] `bundle exec rspec` — 1 example, 0 failures - [x] `bin/ci` — all steps green (Setup, Rubocop, Gem audit, Importmap audit, Brakeman)
allanjsouza added 4 commits 2026-06-08 00:13:45 +00:00
- Generate Rails 8.1 app with PostgreSQL and TailwindCSS
- Add docker-compose.yml (postgres:17) for local database
- Configure database.yml to connect to Dockerized Postgres via env vars
- Add Pages#home root route, application layout, and navbar partial
- Add rspec-rails to the development/test group
- Generate RSpec config (.rspec, spec_helper, rails_helper)
- Add home page request spec as a smoke test
- Stop ignoring .rspec so test config is tracked
The app was generated with 'rails new --skip', which skipped the
JavaScript install step, leaving bin/importmap missing and bin/ci's
importmap audit failing. Run the importmap, turbo, and stimulus install
generators to wire up Hotwire per PRD 10.1/10.2 and restore bin/ci.
Add gitea-cli project skill
Some checks failed
CI / scan_js (pull_request) Successful in 13s
CI / lint (pull_request) Successful in 20s
CI / scan_ruby (pull_request) Failing after 22s
74b8a9c2fe
allanjsouza added 1 commit 2026-06-08 00:34:34 +00:00
Bump puma to 8.0.2 to fix CVE-2026-47736 and CVE-2026-47737
All checks were successful
CI / scan_ruby (pull_request) Successful in 37s
CI / scan_js (pull_request) Successful in 14s
CI / lint (pull_request) Successful in 19s
CI / scan_ruby (push) Successful in 20s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 20s
ccb86fdcd6
bundler-audit (fresh advisory DB) flagged two High-severity PROXY
Protocol v1 vulnerabilities in puma 8.0.1. Update to 8.0.2 as advised.
allanjsouza merged commit ccb86fdcd6 into main 2026-06-08 00:38:51 +00:00
allanjsouza deleted branch setup/rails-foundation 2026-06-08 00:38:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: allanjsouza/characterization-tool-for-git-workflows#1