feat(examples): run combined-app server and client with one command#127
Merged
Conversation
`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>
adam-rl
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The combined-app required two terminals to run in dev:
bun run dev(Express server, port 3003) andbun run dev:client(Vite, port 5176). This makesbun run devstart both with a single command.concurrentlydevDependency and rewire scripts:dev→ runs both viaconcurrentlywith[server]/[client]prefixed output; one Ctrl-C tears both downdev:server→ the formerdevscript (Express)dev:client→ unchanged (Vite); both individual scripts remain availableChose
concurrentlyover a shell&because&orphans the server on Ctrl-C and isn't cross-platform;concurrentlyforwards signals and labels output.Test plan
bun run devboots both processes (server logs:3003, Vite serves:5176) under oneconcurrentlyprocess with prefixed outputbun run typecheckpasses for the combined-appdev:server/dev:clientstill work individually🤖 Generated with Claude Code