chore(dev): improve local dev experience#742
Conversation
- Go API hot reload via air (.air.toml, scripts/dev-api.sh, make dev-api) - make dev-full: one-command host stack (services + migrate + API + web) - lefthook pre-commit auto-formats staged files (biome/gofmt) - .vscode shared settings/extensions/debug configs - make codegen: sqlc + Go OpenAPI stubs + TS SDK in one step - docs: fix CONTRIBUTING host-dev path (missing API start) + agent notes Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 360f366ff7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| cd "$ROOT" | ||
|
|
||
| echo "[dev-full] Starting Postgres/Redis and applying migrations..." | ||
| pnpm --filter @exponential/web dev-services |
There was a problem hiding this comment.
Resolve the compose file path before starting dev services
make dev-full stops at this step because pnpm --filter @exponential/web dev-services runs the web package script with apps/web as its working directory, and that script invokes docker compose -f docker-compose.yml; there is no compose file under apps/web (it lives at the repo root), so Postgres/Redis never start and the API/web processes are not launched. Use a root-relative/absolute compose path or run the service bootstrap from the repo root.
Useful? React with 👍 / 👎.
What
Improves the local dev workflow with four independent changes:
apps/api/.air.toml+scripts/dev-api.sh+make dev-api. Rebuilds./cmd/apion save (usesair, falls back togo runif not installed).make dev-full— one command for the full host stack: Docker services + migrations, Go API (:7016), and web (:7015) together.biome --write,gofmt -w). Installs onpnpm install. Not a substitute formake check..vscode/configs — shared format-on-save settings, recommended extensions, and Go/Next.js debug launch configs.make codegen— regenerate sqlc queries + Go OpenAPI stubs + TS SDK in one step.Why
/api/*502s.make checkwas discipline-only.Docs
make dev-full/make codegen.Verification
bash -n; make targets parse.go build ./cmd/apicompiles (air build cmd valid).lefthook validatepasses; pre-commit ran clean on this commit.🤖 Generated with Claude Code