tududi/scripts/start-all-dev.sh
antanst 7035ad3691 Fix npm run start to run everything.
We can run the project locally with a single command now.
2025-08-09 16:59:17 +03:00

22 lines
381 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cleanup() {
echo
echo "Stopping frontend and backend..."
local pids
pids="$(jobs -p || true)"
if [ -n "$pids" ]; then
kill $pids 2>/dev/null || true
wait $pids 2>/dev/null || true
fi
}
trap cleanup INT TERM EXIT
echo "Starting backend..."
npm run backend:start &
echo "Starting frontend..."
npm run frontend:dev &
wait