A minimal full-stack example: a Flask API backend and a React (Vite) frontend.
- backend/ — single-file Flask app exposing
GET /api/hello. - frontend/ — React + Vite single page that fetches and displays the message.
You need two terminals.
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r backend/requirements.txt
cd backend
python app.pyFlask serves on http://localhost:5000.
cd frontend
npm install
npm run devVite serves on http://localhost:5173 and proxies /api/* to the backend.
Open http://localhost:5173 in your browser — you should see "Hello from Flask".
See backend/README.md and frontend/README.md for more detail.