mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-13 19:50:54 +08:00
Comments, doc comments, UI labels, log and error messages, LLM prompt strings, markdown docs, test data and assertions. Identifiers, enum keys, routes, placeholders and code structure are unchanged. Notes: - docs/漏洞流量证据.md renamed to docs/vulnerability-traffic-evidence.md - tests that exercised CJK specific handling (GBK zip names, Chinese full text search) now use ASCII equivalents; go build passes and the test suite matches the pre translation baseline (remaining failures need a PostgreSQL DSN and fail identically on the original) - frontend mention syntax now uses English kinds (finding, asset, ...) matching the backend, chat mentions tests pass
21 lines
899 B
Bash
Executable File
21 lines
899 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Dev mode: run the backend (:8787) + traffic proxy (:8788) together with the frontend next dev (:5173).
|
|
# The frontend reverse-proxies /api to the backend; Ctrl-C exits everything.
|
|
#
|
|
# For the single-binary mode (frontend embedded), see the "Single binary" section of the README; it does not use this script.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
# On exit, kill all child processes in this process group (backend + frontend).
|
|
cleanup() { kill 0 2>/dev/null || true; }
|
|
trap cleanup EXIT INT TERM
|
|
|
|
# Backend (plain go run, frontend not embedded); the concurrent work agent count is configured under "System Settings".
|
|
go run ./cmd/artex -addr :8787 -proxy 127.0.0.1:8788 &
|
|
|
|
# Frontend hot reload (Vite/Next dev server, /api reverse-proxied to :8787).
|
|
( cd web && npm run dev ) &
|
|
|
|
echo "[dev] backend :8787 / proxy :8788 / frontend http://localhost:5173 (Ctrl-C to exit)"
|
|
wait
|