Contributing¶
Shared environment¶
Frontend and backend must share:
export CONFIG_PATH=/where/to/create/database/
export FRONTEND_BACKEND_API_KEY=$(head -c 32 /dev/urandom | hexdump -ve '1/1 "%.2x"')
export BACKEND_URL=http://localhost:5000
Optional: THREADPOOL_MIN_THREADS, THREADPOOL_MAX_THREADS.
Preferred workflow¶
UI: http://localhost:5173 → proxies to backend :5000.
run-backend.sh defaults LOG_LEVEL=Debug, LOG_BUFFER_SIZE=2000, STREAM_TRACE_EVENTS=20000 for local debugging. Docker leaves these unset.
Real-provider playback¶
- Add Usenet + WebDAV credentials in Settings.
- Queue an
.nzb, play via Explore or rclone against the frontend port. - Dump stream traces with
./scripts/dump-stream-trace.sh.
PR checks¶
cd frontend && npm run lint && npm run typecheck && npm run build && npm test
dotnet test tests/NzbWebDAV.Tests/NzbWebDAV.Tests.csproj -c Release
Full details: repository CONTRIBUTING.md and AGENTS.md.