Enhance web start script to support landing page and add user management view

This commit is contained in:
Omar Sánchez Pizarro
2026-01-20 23:57:47 +01:00
parent 6ec8855c00
commit 447ff6a4d6
2 changed files with 730 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# Script para iniciar el servidor web de Wallabicher
# Script para iniciar el servidor web de Wallabicher (con landing)
echo "🚀 Iniciando Wallabicher Web Interface..."
echo ""
@@ -33,6 +33,14 @@ if [ ! -d "dashboard/node_modules" ]; then
cd ..
fi
# Instalar dependencias del landing si no existen
if [ -d "landing" ] && [ ! -d "landing/node_modules" ]; then
echo "📦 Instalando dependencias del landing..."
cd landing
npm install
cd ..
fi
# Iniciar backend en background
echo "🔧 Iniciando backend..."
cd backend
@@ -43,21 +51,33 @@ cd ..
# Esperar un poco para que el backend se inicie
sleep 2
# Iniciar dashboard
# Iniciar dashboard en background
echo "🎨 Iniciando dashboard..."
cd dashboard
npm run dev &
DASHBOARD_PID=$!
cd ..
# Iniciar landing si existe
if [ -d "landing" ]; then
echo "🌐 Iniciando landing..."
cd landing
npm run dev &
LANDING_PID=$!
cd ..
fi
echo ""
echo "✅ Servidores iniciados!"
echo "📡 Backend: http://localhost:3001"
echo "🎨 Dashboard: http://localhost:3000"
if [ -d "landing" ]; then
echo "🌐 Landing: http://localhost:3002"
fi
echo ""
echo "Presiona Ctrl+C para detener los servidores"
# Esperar a que se presione Ctrl+C
trap "kill $BACKEND_PID $DASHBOARD_PID 2>/dev/null; exit" INT TERM
# Esperar a que se presione Ctrl+C y matar todos los procesos
trap "kill $BACKEND_PID $DASHBOARD_PID ${LANDING_PID:-} 2>/dev/null; exit" INT TERM
wait