Skip to content

docs: correct backend entry point - #301

Merged
dusanstanojeviccs merged 1 commit into
mainfrom
docs/fix-backend-entry-point
Aug 25, 2026
Merged

docs: correct backend entry point#301
dusanstanojeviccs merged 1 commit into
mainfrom
docs/fix-backend-entry-point

Conversation

@FrameAutomata

@FrameAutomata FrameAutomata commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What

CLAUDE.md's Quick Start pointed at cd backend && go run . and listed backend/main.go as the entry point. Neither exists.

backend/ is package tracewaybackend — a library facade over cmd. So:

  • go run . fails outright
  • go build -o x . exits 0 while silently emitting a !<arch> static archive instead of a binary

The real entry point is ./cmd/traceway.

Changes

  • Quick Start: go run .go run ./cmd/traceway
  • Project-structure tree: replaces the phantom backend/main.go with traceway.go, cmd/run.go, cmd/traceway/main.go, and cmd/traceway-runner/
  • scripts/build-oxc-shim.sh printed the identical stale command. That one matters more than it looks — the oxc dev shell in chore: add Nix dev shells for backend and frontend #302 points developers straight at this script.
  • Notes that JWT_SECRET must be set before the backend starts

Verification

go build -o x ./cmd/traceway produces a 90MB ELF executable; the old form produces a 78KB archive.

Merge order

⚠️ Best merged after #305. An earlier revision of this PR also documented DB_TYPE=sqlite and PORTS=8082 as required, because the backend panicked twice without them. #305 removes both panics, so that guidance has been trimmed out and only JWT_SECRET remains.

If this lands before #305, the Quick Start command will still panic on DB_TYPE and :80 and the docs won't say so. Landing #305 first makes this page accurate immediately.

🤖 Generated with Claude Code

CLAUDE.md's Quick Start pointed at `cd backend && go run .` and listed
backend/main.go as the entry point. Neither exists: backend/ is
`package tracewaybackend`, a library facade over cmd, so `go run .` fails
and `go build -o x .` exits 0 while silently emitting a static archive
instead of a binary. The real entry point is ./cmd/traceway.

scripts/build-oxc-shim.sh printed the identical stale command. That one
matters more than it looks: the oxc dev shell points developers straight
at this script.

Also notes that JWT_SECRET has to be set before the backend will start.
DB_TYPE and PORTS are deliberately not mentioned -- they no longer need
setting once the startup defaults land.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants