This repository contains a minimal TypeScript React frontend (Vite) and a Flask backend managed with uv. Both applications are wired together so the frontend fetches its greeting from the backend.
frontend/– Vite + React + TypeScript UI (npmbased)backend/– Flask API managed byuv
- Node.js 18+
- npm 9+
- Python 3.13 (managed automatically by
uv)
-
Install frontend dependencies:
cd frontend npm install # optional: create .env.local and set VITE_API_BASE_URL for non-local backends npm run dev
The dev server runs on http://localhost:5173.
-
Bootstrap the backend (from
backend/):export UV_CACHE_DIR="$(pwd)/../.uv-cache" uv sync export UV_CACHE_DIR="$(pwd)/../.uv-cache" uv run flask --app app --debug run --port 8000
The API exposes
GET /api/helloandGET /api/healthon http://127.0.0.1:8000.
With both servers running, open the frontend and it will display the greeting fetched from the Flask backend. If the backend is unavailable, the UI shows a helpful message.