#!/bin/bash
echo "Starting CVE Dashboard servers..."

sudo systemctl start cve-backend
echo "✓ Backend started"

sudo systemctl start cve-frontend
echo "✓ Frontend started"

sleep 1

# Show status
systemctl is-active --quiet cve-backend && echo "  Backend:  http://localhost:3001 (running)" || echo "  Backend:  FAILED"
systemctl is-active --quiet cve-frontend && echo "  Frontend: http://localhost:3000 (running)" || echo "  Frontend: FAILED"
