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) <noreply@anthropic.com>
This commit is contained in:
Stefan Hacker 2026-04-11 15:15:38 +02:00
parent 6e02e1a276
commit e7170b7cc8
1 changed files with 12 additions and 1 deletions

View File

@ -51,7 +51,7 @@ pip install -r requirements.txt
# Backend starten # Backend starten
python wsgi.py python wsgi.py
# -> laeuft auf http://localhost:5000 # -> laeuft auf http://localhost:5000 (nur API, nicht im Browser oeffnen)
# Frontend einrichten (neues Terminal) # Frontend einrichten (neues Terminal)
cd frontend cd frontend
@ -62,6 +62,17 @@ npm run dev
# -> laeuft auf http://localhost:3100 # -> 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. Beim ersten Registrieren wird der Benutzer automatisch zum Admin.
### Docker (Produktion) ### Docker (Produktion)