fastapi / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
MIT License
27.1k stars 4.82k forks source link

♻️ Simplify domains with `api.example.com` for API and `dashboard.example.com` for frontend, improve local development with `localhost` #1344

Closed tiangolo closed 1 month ago

tiangolo commented 1 month ago

♻️ Simplify domains with api.example.com for API and dashboard.example.com for frontend, improve local development with localhost

Simplify local development with the same ports as local reloading servers, this way it's easier to swap the Docker frontend for the local frontend and the Docker server for a local fastapi dev server or similar.

Having separated domains also opens the possibilities for deploying things even on different servers.