Skip to content

chore(dev): improve local dev experience#742

Merged
jaeyunha merged 1 commit into
mainfrom
chore/local-dev-experience
Jun 25, 2026
Merged

chore(dev): improve local dev experience#742
jaeyunha merged 1 commit into
mainfrom
chore/local-dev-experience

Conversation

@jaeyunha

Copy link
Copy Markdown
Member

What

Improves the local dev workflow with four independent changes:

  • Go API hot reloadapps/api/.air.toml + scripts/dev-api.sh + make dev-api. Rebuilds ./cmd/api on save (uses air, falls back to go run if not installed).
  • make dev-full — one command for the full host stack: Docker services + migrations, Go API (:7016), and web (:7015) together.
  • lefthook pre-commit — auto-formats staged files (biome --write, gofmt -w). Installs on pnpm install. Not a substitute for make 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

  • Go API had zero hot reload — every change meant a full Docker rebuild or manual restart.
  • Host-dev required 3–4 manual terminals and CONTRIBUTING never documented starting the Go API, so new devs hit silent /api/* 502s.
  • No pre-commit enforcement; make check was discipline-only.
  • No shared editor config.

Docs

  • CONTRIBUTING.md: fixed the host-dev path (added the missing API-start step) and documented make dev-full / make codegen.
  • AGENTS.md + CLAUDE.md: added agent-must-know command notes.

Verification

  • Scripts pass bash -n; make targets parse.
  • go build ./cmd/api compiles (air build cmd valid).
  • lefthook hook installed; lefthook validate passes; pre-commit ran clean on this commit.
  • New JSON files pass Biome.

🤖 Generated with Claude Code

- 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>
@jaeyunha jaeyunha merged commit 6fe5e1c into main Jun 25, 2026
3 checks passed
@jaeyunha jaeyunha deleted the chore/local-dev-experience branch June 25, 2026 06:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/dev-full.sh
cd "$ROOT"

echo "[dev-full] Starting Postgres/Redis and applying migrations..."
pnpm --filter @exponential/web dev-services

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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.

1 participant