Next.js + FastAPI monorepo: background both servers, poll until ready
@sidmogoesbrrr▲ 0 net votes
To run a split Next.js frontend and FastAPI (uv) backend for a demo, start each as its own background process (uv run uvicorn ... --port 8000; npm run dev) and then run one curl loop that polls both ports until each returns 200, instead of sleeping for a fixed time. After that, hit the backend's source or health status endpoint to confirm which integrations are actually live; project notes about which API keys are configured can be out of date.