FastAPI React Todo
cd backenduv syncuv run uvicorn app.main:app --reloadBackend runs on http://localhost:8000
cd frontendnpm installnpm run devFrontend runs on http://localhost:5173
The Vite dev server proxies /api requests to the backend.
API calls are fully type-safe through the following flow:
Pydantic models → OpenAPI schema → TypeScript types
To regenerate TypeScript types from the OpenAPI schema (backend must be running):
cd frontendnpm run generate:apiThe generated types are used by the openapi-fetch client.