Skip to content

feat(examples): run combined-app server and client with one command#127

Merged
dines-rl merged 1 commit into
mainfrom
feat/combined-app-single-dev-command
Jun 17, 2026
Merged

feat(examples): run combined-app server and client with one command#127
dines-rl merged 1 commit into
mainfrom
feat/combined-app-single-dev-command

Conversation

@dines-rl

Copy link
Copy Markdown
Collaborator

Summary

The combined-app required two terminals to run in dev: bun run dev (Express server, port 3003) and bun run dev:client (Vite, port 5176). This makes bun run dev start both with a single command.

  • Add concurrently devDependency and rewire scripts:
    • dev → runs both via concurrently with [server]/[client] prefixed output; one Ctrl-C tears both down
    • dev:server → the former dev script (Express)
    • dev:client → unchanged (Vite); both individual scripts remain available
  • Update README "Running" section to document the single command
  • Fix the stale server boot log that told users to start Vite separately

Chose concurrently over a shell & because & orphans the server on Ctrl-C and isn't cross-platform; concurrently forwards signals and labels output.

Test plan

  • bun run dev boots both processes (server logs :3003, Vite serves :5176) under one concurrently process with prefixed output
  • bun run typecheck passes for the combined-app
  • dev:server / dev:client still work individually

🤖 Generated with Claude Code

`bun run dev` previously started only the Express server, requiring a
second terminal for `bun run dev:client` (Vite). Add `concurrently` so
`bun run dev` launches both with prefixed output and shared Ctrl-C
shutdown. The former `dev` server script moves to `dev:server`; the
individual scripts remain available.

Also update the README and the stale server boot log that pointed users
to start Vite separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dines-rl dines-rl merged commit d4edbca into main Jun 17, 2026
5 checks passed
@dines-rl dines-rl deleted the feat/combined-app-single-dev-command branch June 17, 2026 23:40
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