- optional `VITE_API_BASE_URL` for the dev proxy target
## Anwendung starten
## Run the App
Das Backend führt beim Start Readiness-Checks, Datenbankinitialisierung für LLM-Quotas und ein Embedding-Warmup aus. Stelle deshalb sicher, dass Datenbank und Provider-Konfiguration erreichbar sind.
On startup, the backend runs readiness checks, initializes database state for LLM quotas, and warms up embeddings. Make sure the database and provider configuration are reachable before starting it.
Backend:
...
...
@@ -96,11 +95,11 @@ cd math-tutor/frontend
pnpmrundev
```
Das Vite-Dev-Frontend läuft auf`http://localhost:5173`. API-Aufrufe gehen im Development über den Vite-Proxy an das Backend.
The Vite dev server runs on`http://localhost:5173`. In development, API calls are proxied to the backend through Vite.
## Dev-Proxy
## DevProxy
Das Frontend ruft APIs relativ über`/api/...` auf. Im Development leitet Vite diese Reqüsts an das Backend weiter.
The frontend sends API requests to`/api/...`. In development, Vite forwards them to the backend.
Optional in `math-tutor/frontend/.env`:
...
...
@@ -108,47 +107,47 @@ Optional in `math-tutor/frontend/.env`:
VITE_API_BASE_URL="http://localhost:8000"
```
Ohne diese Variable wird standardmäßig`http://localhost:8000`verwendet.
If you do not set it, Vite uses`http://localhost:8000`by default.
## Task Deep Links
Ein Aufgaben-Chat kann direkt per URL geöffnet werden:
# Initializes a chat session with a Socratic-style prompt based on the selected topic. This sets up the context and provides the first assistant message.
# This module implements health and readiness checks for the application, including checks for LLM providers, MCP server, PostgreSQL database, and LLM quota.