| name | run |
| description | Start the butler dev environment (API + frontend). Use when asked to run, start, or launch the app, or to verify a change works in the browser. |
Run Butler Dev Environment
Start both dev servers and verify they're healthy.
Steps
-
Build shared package first (API and frontend resolve types from dist/):
pnpm --filter @butler/shared build
-
Start both dev servers in background:
pnpm --filter @butler/api dev &
pnpm --filter @butler/frontend dev &
-
Verify health:
- API:
curl http://localhost:8787/health → {"status":"ok"}
- Frontend: open
http://localhost:5173 in browser
Ports
Common Issues
- If types are stale, rebuild shared:
pnpm --filter @butler/shared build
- If ports are in use:
lsof -ti:8787 | xargs kill / lsof -ti:5173 | xargs kill