{"id":50663917,"url":"https://github.com/kenfdev/playing-rails","last_synced_at":"2026-06-08T04:33:39.210Z","repository":{"id":356742189,"uuid":"1232960021","full_name":"kenfdev/playing-rails","owner":"kenfdev","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T14:55:23.000Z","size":229,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T15:38:48.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenfdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-08T12:53:47.000Z","updated_at":"2026-05-09T13:53:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kenfdev/playing-rails","commit_stats":null,"previous_names":["kenfdev/playing-rails"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kenfdev/playing-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaying-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaying-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaying-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaying-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenfdev","download_url":"https://codeload.github.com/kenfdev/playing-rails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaying-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34048681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-08T04:33:38.474Z","updated_at":"2026-06-08T04:33:39.197Z","avatar_url":"https://github.com/kenfdev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playing-rails\n\nA learning-focused Rails 8.1 stack: Falcon + SQLite + Solid Queue + ViewComponent + Pundit + Sorbet, with Active Storage backed by SeaweedFS and OpenTelemetry traces flowing into Jaeger.\n\n## Prerequisites\n\n- Docker (Desktop or compatible)\n- The [container-wt](https://github.com/kenfdev/container-wt) `wt` worktree CLI on `PATH`\n\nEverything else (Ruby, Bundler, system libs) lives inside the per-worktree `app` container.\n\n## One-time host setup\n\nFrom the repo root, start the **shared infrastructure** containers (Traefik, SeaweedFS, OTel Collector, Jaeger):\n\n```sh\ndocker compose up -d\n```\n\nThese run independently of any worktree and are reused across branches.\n\n## Per-worktree boot\n\nUse the standard `wt` flow to materialize a worktree and bring up its `app` container. From inside the running `app` container:\n\n```sh\nbin/setup        # bundle install, db:prepare, ensure S3 bucket\nbin/dev          # falcon (web) + tailwind --watch + bin/jobs (Solid Queue)\n```\n\n`bin/setup` is idempotent — re-run any time.\n\n## URLs\n\n| Surface | URL |\n|---|---|\n| App (this branch) | `http://\u003cbranch\u003e.playing-rails.localhost` |\n| Jaeger UI | `http://jaeger.playing-rails.localhost` |\n| Traefik dashboard | `http://traefik.playing-rails.localhost` |\n\n## Seeded accounts\n\n`bin/rails db:seed` creates three accounts (idempotent). Defaults are gated by env vars so they can be overridden.\n\n| Email | Role | Password env |\n|---|---|---|\n| `admin@example.com` | admin | `SEED_ADMIN_PASSWORD` (default `admin-password`) |\n| `recruiter@example.com` | recruiter | `SEED_RECRUITER_PASSWORD` (default `recruiter-password`) |\n| `member@example.com` | member | `SEED_MEMBER_PASSWORD` (default `member-password`) |\n\n## Smoke test\n\n1. Sign in as `admin@example.com`.\n2. Land on `/admin/smoke` (the root path also points here).\n3. Click **Enqueue smoke job** — the controller authorizes via Pundit, enqueues `SmokeJob`, and redirects.\n4. Verify:\n   - **Jaeger UI** shows a trace for `GET /admin/smoke` and a span for the `SmokeJob`.\n   - The `web` process emits a single-line JSON log (Lograge) with a `trace_id` field.\n   - The `jobs` process emits the `smoke_job` event line.\n5. Sign out, sign in as `member@example.com`, hit `/admin/smoke` — expect HTTP 403.\n\n## Verification commands\n\nInside the `app` container:\n\n```sh\nbin/rails db:migrate db:seed\nbin/rails test\nbundle exec srb tc\nbundle exec rubocop\nbundle exec brakeman --no-pager\n```\n\nAll five must succeed on a clean checkout.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fplaying-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenfdev%2Fplaying-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fplaying-rails/lists"}