ericchang00's picture
add screenshot2-add-expense-sparse task (build 06a75b8)
8830fa5 verified
Raw History Blame Contribute Delete
363 Bytes
#!/usr/bin/env bash
DIR="$(cd "$(dirname "$0")" && pwd)"
PIDS=()
cleanup() {
for pid in "${PIDS[@]}"; do
kill "$pid" 2>/dev/null
done
}
trap cleanup EXIT
# Start backend
(
source "$DIR/.venv/bin/activate"
cd "$DIR/backend"
python run.py
) &
PIDS+=($!)
# Start frontend
(
cd "$DIR/frontend"
npm run dev
) &
PIDS+=($!)
wait