From e7170b7cc8f6a0f9e678021aa31f6beda4188a74 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Sat, 11 Apr 2026 15:15:38 +0200 Subject: [PATCH] docs: clarify port usage in README (dev vs production) Port 3100 is the frontend dev server (open in browser), port 5000 is the backend API only. In Docker production, everything runs on 5000. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc24f6c..c27a9cd 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ pip install -r requirements.txt # Backend starten python wsgi.py -# -> laeuft auf http://localhost:5000 +# -> laeuft auf http://localhost:5000 (nur API, nicht im Browser oeffnen) # Frontend einrichten (neues Terminal) cd frontend @@ -62,6 +62,17 @@ npm run dev # -> laeuft auf http://localhost:3100 ``` +**Wichtig - Ports in der Entwicklung:** + +| Port | Dienst | Im Browser oeffnen? | +|------|--------|---------------------| +| `5000` | Backend (Flask API) | Nein - nur API, kein Frontend | +| `3100` | Frontend (Vite Dev Server) | **Ja - hier arbeiten!** | + +Im Entwicklungsmodus immer `http://localhost:3100` im Browser oeffnen. Der Vite Dev Server leitet API-Aufrufe automatisch an Port 5000 weiter (Proxy in `vite.config.js`). + +In der **Docker-Produktion** laeuft alles auf einem einzigen Port (`5000`) - Backend liefert das gebaute Frontend direkt mit aus. + Beim ersten Registrieren wird der Benutzer automatisch zum Admin. ### Docker (Produktion)