first init

This commit is contained in:
WillowMT
2026-02-20 14:00:43 +07:00
commit f17c0ba90e
21 changed files with 960 additions and 0 deletions

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# FastAPI + React Vite
Monorepo with FastAPI backend and React (Vite) frontend.
## Backend (FastAPI)
```bash
cd backend
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
uvicorn main:app --reload
```
API runs at http://localhost:8000
Docs at http://localhost:8000/docs
## Frontend (React + Vite)
```bash
cd frontend
bun dev
```
App runs at http://localhost:5173
## API proxy
The frontend proxies `/api` to the backend during dev. Use `fetch('/api/health')` or call `http://localhost:8000` directly (CORS enabled).