The frontend app for the Online Beratung.
Please refer to the hosted documentation for setup instructions.
The development server is configured with a reverse proxy that forwards backend requests to a remote backend. By default, it uses:
https://happylife.develop.onlineberatung.net
This means you can develop locally without needing to run the backend service. All API calls will be proxied to the remote development backend.
The following paths are automatically forwarded to the backend:
/service/*- Service API endpoints/api/*- API endpoints/auth/*- Authentication endpoints/websocket- WebSocket connections for real-time features
To use a different backend, set the VITE_API_URL environment variable:
VITE_API_URL=https://your-backend.example.com npm run devOr create a .env file in the project root:
VITE_API_URL=https://your-backend.example.com
The proxy ensures that:
- All requests to
localhost:5173/service/*,localhost:5173/api/*,localhost:5173/auth/*, andlocalhost:5173/websocketare forwarded to the configured backend - WebSocket connections are supported for
/websocketand/service/live/*endpoints - HTTPS is used with port 443 (standard)
- CORS headers are properly handled with
changeOrigin: true