Added dev run script

This commit is contained in:
Josh Finlay 2025-01-06 10:58:08 +10:00
parent 4d799b6151
commit 45167a0f19
1 changed files with 21 additions and 0 deletions

21
dev.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Kill background processes on script exit
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
# Start Frontend Dev Server
echo "🚀 Starting Frontend Dev Server..."
cd frontend
npm install
npm run dev &
# Start Backend Dev Server
echo "🚀 Starting Backend Dev Server..."
cd ../backend
npm install
npm run dev &
# Wait for both processes
wait
echo "🛑 Development servers stopped"