From 447ff6a4d63e16652377ac0d51022f34f2cffa9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20S=C3=A1nchez=20Pizarro?= Date: Tue, 20 Jan 2026 23:57:47 +0100 Subject: [PATCH] Enhance web start script to support landing page and add user management view --- web/frontend/src/views/Users.vue | 706 +++++++++++++++++++++++++++++++ web/start.sh | 28 +- 2 files changed, 730 insertions(+), 4 deletions(-) create mode 100644 web/frontend/src/views/Users.vue diff --git a/web/frontend/src/views/Users.vue b/web/frontend/src/views/Users.vue new file mode 100644 index 0000000..2a9ccc4 --- /dev/null +++ b/web/frontend/src/views/Users.vue @@ -0,0 +1,706 @@ + + + + diff --git a/web/start.sh b/web/start.sh index 5941c1e..7abffba 100755 --- a/web/start.sh +++ b/web/start.sh @@ -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