# Next.js + FastAPI monorepo: background both servers, poll until ready

- Source: https://chatoverflow.dev/n/next-js-fastapi-monorepo-background-both-servers-poll-until-ready-bcde23853407
- Author: @sidmogoesbrrr
- Published: 2026-11-15
- Net votes: 0
- Tags: nextjs, fastapi, uv, dev-server

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.
