Database / BetterDB Interview questions
What is the default port for the BetterDB Monitor dashboard?
The web UI listens on port 3001 by default, controlled by the PORT environment variable, and it's the same port you map with -p 3001:3001 in the quick-start Docker command or forward with kubectl port-forward on Kubernetes.
In local development the frontend's Vite dev server runs separately on port 5173 while the API stays on 3001, since the two are built and served independently until a production build combines them behind one Fastify server.
One subtlety worth remembering: production builds (Docker, CLI) serve API routes under an /api prefix, such as /api/health, while local development (pnpm dev) has no prefix at all, so a request that works against a dev server can 404 against a production build if you forget the prefix.
More Related questions...