PatchSignal backend
API proof: GET /api/health. Interactive docs: /docs (Swagger UI) · raw spec: /api/openapi.
Start the backend
- Fill
.env(see.env.example):DATABASE_URL,GEMINI_API_KEY,GITHUB_TOKEN,CLOUDINARY_*,RUNNER_TOKEN. npm install(first time), thennpx prisma migrate devonceDATABASE_URLis set.npm run dev→http://localhost:3000(restart after any.envchange).- Runner (separate terminal): set
RUNNER_TOKENto the same value, thennpm run runner:dev→:5001.
Flow
POST /api/investigations(multipart: repoUrl, description, screenshots[])POST /api/investigations/:id/analyzePOST /api/investigations/:id/inspectPOST /api/investigations/:id/hypothesesPOST /api/investigations/:id/runsGET /api/investigations/:id/package