Single script to start both backend and frontend with prefixed logs. Updated README with dev.sh usage and keyboard shortcut reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
320 B
Bash
Executable File
23 lines
320 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
cleanup() {
|
|
kill $BE_PID $FE_PID 2>/dev/null || true
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
# Backend (bun --watch)
|
|
cd backend
|
|
bun run dev 2>&1 | sed 's/^/[BE] /' &
|
|
BE_PID=$!
|
|
cd ..
|
|
|
|
# Frontend (vite dev)
|
|
cd frontend
|
|
bun run dev 2>&1 | sed 's/^/[FE] /' &
|
|
FE_PID=$!
|
|
cd ..
|
|
|
|
wait
|