This commit is contained in:
root
2025-09-24 09:30:40 +00:00
parent c03e30a118
commit 1eb5a2f863
3 changed files with 44 additions and 2 deletions
Executable → Regular
+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