How winayyy/hackathon works
DataOps Console is a local-first dashboard for issuing read-only SQL queries against MySQL, reviewing bounded and masked results, viewing redacted query history, and exporting CSV. The main workflow runs from the browser through the React interface and API, where SQL is validated before database execution; results and query metadata then return to the interface or are stored separately. The graph also shows documented Nginx routing and demo-data initialization. Backend details are based on a partial excerpt; deployment manifests are not runtime product components here.
Main entry points: main.py FastAPI Routes · App.jsx Dashboard UI · nginx.conf Nginx Proxy · main.jsx React Entry
Components 13
Dashboard
- Dashboard UI
frontend/src/App.jsx - Query Editor
frontend/src/App.jsx - Results & CSV
frontend/src/App.jsx - History View
frontend/src/App.jsx - React Entry
frontend/src/main.jsx
Query API
- FastAPI Routes
backend/main.py - SQL Validation
backend/main.py - Mask & Serialize
backend/main.py
Data Stores
- MySQL Database
- SQLite History
backend/main.py - Demo Records
db/init.sql
Web Serving
- Nginx Proxy
frontend/nginx.conf
Other components
- Browser User
Connections 15
- Browser User → Dashboard UI: uses dashboard
README.md - React Entry → Dashboard UI: renders
frontend/src/main.jsx - Dashboard UI → Query Editor: renders
frontend/src/App.jsx - Dashboard UI → Results & CSV: renders
frontend/src/App.jsx - Dashboard UI → History View: renders
frontend/src/App.jsx - Dashboard UI → Nginx Proxy: serves through
README.md - Nginx Proxy → FastAPI Routes: forwards API
README.md - Query Editor → FastAPI Routes: submits query
README.md - History View → FastAPI Routes: requests history
README.md - FastAPI Routes → SQL Validation: validates query
backend/main.py - FastAPI Routes → MySQL Database: executes SQL
backend/main.py - FastAPI Routes → Mask & Serialize: masks results
backend/main.py - FastAPI Routes → SQLite History: records and reads
backend/main.py - Results & CSV → Browser User: downloads CSV
frontend/src/App.jsx - Demo Records → MySQL Database: initializes records
README.md