A minimal full-stack chat sample with a React/Vite frontend and a FastAPI backend, showcasing streaming responses, conversation history, and file uploads.
- Quick overview and local run instructions.
- Key directories and documentation links.
- Detailed architecture (see docs).
- Contribution workflow details (see develop.md).
- Frontend SPA (
frontend/) with chat UI and attachments. - Backend API (
backend/) with streaming chat, history, and uploads. - Optional local persistence (
backend/.local-data/) when enabled.
- Install dependencies
- Frontend:
pnpm install - Backend: create a venv and install backend requirements
- Frontend:
- Run services
- Frontend:
pnpm dev(fromfrontend/) - Backend:
uvicorn app.main:app --reload(frombackend/)
- Frontend:
- Open the frontend in the browser.
- (Optional) Update backend lock file:
pip-compile pyproject.toml -o requirements.lock(frombackend/)
- Overview:
docs/README.md - System architecture:
docs/architecture.md - Frontend architecture:
docs/architecture-front.md - Backend architecture:
docs/architecture-back.md - Development workflow:
docs/develop.md
frontend/: React + Vite app and UI components.backend/: FastAPI app, services, and repositories.docs/: project documentation.
