This commit is contained in:
root
2025-09-24 09:18:55 +00:00
parent a9f9fecb26
commit cab8139815
8 changed files with 137 additions and 2 deletions
+11 -2
View File
@@ -3,22 +3,31 @@ set -e
echo "🚀 Starte StackPulse Dev-Umgebung..."
# --- Backend ---
cd backend
npm install
npm start &
BACK_PID=$!
cd ..
# --- Frontend ---
cd frontend
npm install
npm run dev &
FRONT_PID=$!
# Optional: Kopiere Build-Dateien für Backend /public (nur für statisches Testen)
npm run build
cp -r dist ../backend/public
cd ..
echo ""
echo "✅ StackPulse läuft lokal:"
echo "Frontend: http://localhost:5173"
echo "Backend: http://localhost:3300"
echo "Frontend (Vite Dev): http://localhost:5173"
echo "Backend API: http://localhost:3300"
echo "Frontend (statisch im Backend/public): http://localhost:4000"
echo "Beenden mit STRG+C"
# Prozesse überwachen
wait $BACK_PID $FRONT_PID