mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-23 19:16:06 +02:00
2ae104fca2
New features:
- Custom RSS Feed Manager: add/remove/prioritize up to 20 news sources
from the Settings panel with weight levels 1-5. Persists across restarts.
- Global Data Center Map Layer: 2,000+ DCs plotted worldwide with clustering,
server-rack icons, and automatic internet outage cross-referencing.
- Imperative map rendering: high-volume layers bypass React reconciliation
via direct setData() calls with debounced updates on dense layers.
- Enhanced /api/health with per-source freshness timestamps and counts.
Fixes:
- Data center coordinates fixed for 187 Southern Hemisphere entries
- Docker CORS_ORIGINS passthrough in docker-compose.yml
- Start scripts warn on Python 3.13+ compatibility
- Settings panel redesigned with tabbed UI (API Keys / News Feeds)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Former-commit-id: 950c308f04
97 lines
2.6 KiB
Batchfile
97 lines
2.6 KiB
Batchfile
@echo off
|
|
title ShadowBroker - Global Threat Intercept
|
|
|
|
echo ===================================================
|
|
echo S H A D O W B R O K E R -- STARTUP
|
|
echo ===================================================
|
|
echo.
|
|
|
|
:: Check for Python
|
|
where python >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Python is not installed or not in PATH.
|
|
echo [!] Install Python 3.10-3.12 from https://python.org
|
|
echo [!] IMPORTANT: Check "Add to PATH" during install.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
:: Check Python version (warn if 3.13+)
|
|
for /f "tokens=2 delims= " %%v in ('python --version 2^>^&1') do set PYVER=%%v
|
|
echo [*] Found Python %PYVER%
|
|
for /f "tokens=1,2 delims=." %%a in ("%PYVER%") do (
|
|
if %%b GEQ 13 (
|
|
echo [!] WARNING: Python %PYVER% detected. Some packages may fail to build.
|
|
echo [!] Recommended: Python 3.10, 3.11, or 3.12.
|
|
echo.
|
|
)
|
|
)
|
|
|
|
:: Check for Node.js
|
|
where npm >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Node.js/npm is not installed or not in PATH.
|
|
echo [!] Install Node.js 18+ from https://nodejs.org
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
for /f "tokens=1 delims= " %%v in ('node --version 2^>^&1') do echo [*] Found Node.js %%v
|
|
|
|
echo.
|
|
echo [*] Setting up backend...
|
|
cd backend
|
|
if not exist "venv\" (
|
|
echo [*] Creating Python virtual environment...
|
|
python -m venv venv
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Failed to create virtual environment.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
call venv\Scripts\activate.bat
|
|
echo [*] Installing Python dependencies (this may take a minute)...
|
|
pip install -q -r requirements.txt
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo [!] ERROR: pip install failed. See errors above.
|
|
echo [!] If you see Rust/cargo errors, your Python version may be too new.
|
|
echo [!] Recommended: Python 3.10, 3.11, or 3.12.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo [*] Backend dependencies OK.
|
|
echo [*] Installing backend Node.js dependencies...
|
|
call npm install --silent
|
|
echo [*] Backend Node.js dependencies OK.
|
|
cd ..
|
|
|
|
echo.
|
|
echo [*] Setting up frontend...
|
|
cd frontend
|
|
if not exist "node_modules\" (
|
|
echo [*] Installing frontend dependencies...
|
|
call npm install
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: npm install failed. See errors above.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
echo [*] Frontend dependencies OK.
|
|
|
|
echo.
|
|
echo ===================================================
|
|
echo Starting services...
|
|
echo Dashboard: http://localhost:3000
|
|
echo Keep this window open! Initial load takes ~10s.
|
|
echo ===================================================
|
|
echo (Press Ctrl+C to stop)
|
|
echo.
|
|
|
|
call npm run dev
|