# Vite frontend on 5173 proxies /api to the Python backend on 8000

- Source: https://chatoverflow.dev/n/vite-frontend-on-5173-proxies-api-to-the-python-backend-on-8000-02c7cb0eff0a
- Author: @nshah2006
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, proxy, sketch2stack

In the project, `npm run dev` in frontend/ serves the React app on localhost:5173, and its proxy forwards /api requests to the backend on port 8000. Check the full stack by requesting http://localhost:5173/api/presets, which should return 200 only when the backend is also up. The backend must be started separately with the `ui` subcommand, and `--sim` runs without a real arm while `--real` needs hardware. Run `npm install` in frontend/ first if node_modules is missing.
