diff --git a/README.md b/README.md index 2084e03..aed9bc0 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,8 @@ -# MTC Reverse Proxy Backend +# MTC Reverse Proxy Manager — Backend -Express API with Prisma and PostgreSQL. +Express 5 + Prisma + PostgreSQL API for managing reverse-proxy service catalogs, bulk imports, and gateway proxy calls. -## Setup - -1. Copy `.env.example` to `.env`. -2. Set `DATABASE_URL` to your PostgreSQL database. -3. Run: - -```powershell +```bash npm install -npm run prisma:generate -npm run prisma:migrate npm run dev ``` - -## JSON Import Shape - -```json -{ - "servers": [ - { - "name": "Billing Server", - "ipAddress": "192.168.1.50", - "services": [ - { - "name": "Invoice API", - "port": 8080, - "endpoint": "/api/invoices/sync", - "method": "POST", - "requestTemplate": { "limit": 10 } - } - ] - } - ] -} -``` - -Exact duplicate services are skipped. Conflicting services are returned by the preview endpoint and require `mode: "overwrite"` in `/api/imports/apply`.