This guide describes how to verify the full flow of the ShadowGuard system: Generator -> Collector -> Redis -> Worker -> Dashboard.
Ensure Redis is running (via Docker):
docker run -d -p 6379:6379 redisIn a new terminal (start from Project Root):
# This runs BOTH the Collector (for /logs) and Dashboard API (for /api/alerts) on port 8000
uvicorn dashboard.backend.main:app --port 8000 --reloadRuns on http://localhost:8000.
In a new terminal:
cd dashboard/frontend
npm run devRuns on http://localhost:5173.
In a new terminal:
cd worker
python worker.pyRun the generator (sends to http://localhost:8000/logs):
In a new terminal:
cd generator
python generate_logs.py --verbose --num-logs 20 --delay 0.5- Generator: Should show "Sent: X success".
- Unified Backend: Should show
POST /logsrequests AND/ws/alertsconnections. - Worker: Should capture events, print
[PROCESSED], and push alerts to Redis.
- Open
http://localhost:5173. - Verify alerts appear in the live feed.