CodeDevAyush/AI-Based-Detection-of-Cyber-Threats-in-Unidirectional-IP-Traffic ? reverse-engineered prompt
Reverse engineered prompt
Build me the full working dashboard for this project, with a FastAPI backend, a React and Vite frontend, and MongoDB for storage. It should let me ingest normalized unidirectional traffic flow data, run it through the detection pipeline, and show the results in a clean security dashboard.
I want the app to score each event by risk, generate alerts, and display the important details like threat type, confidence, severity, and timestamps. It should also support live alert updates through WebSockets, keep an audit trail with integrity checking, and show the stored alert history in a usable way. Make the UI feel like a real cyber security monitoring tool, with charts, tables, filters, and a clear status view for the current stream.
Please make sure the backend and frontend work together end to end, use the contracts in the repo, and wire up the basic pages so I can run it locally with the existing setup instructions. If you need to check current docs for FastAPI, React, or MongoDB patterns, go ahead and look them up.