fastware v0.1.0 /src.fastware.dev
On this page

Development mode combining Vite frontend dev server and fastware ASGI backend in a single command with hot reload and proxy routing.

#src.fastware.dev

#src.fastware.dev

Development mode combining Vite frontend dev server and fastware ASGI backend in a single command with hot reload and proxy routing.

#dev

python
def dev(target: str | Callable, *, vite_command: str='npm run dev', vite_port: int=5173, host: str | None=None, port: int | None=None, pid_path: Path | None=None, name: str='FASTWARE', pre_serve: Callable[[], None] | None=None) -> None

Start Vite dev server + fastware ASGI server for development.

Spawns Vite as a subprocess, waits for it to be ready, then starts the fastware server with ViteDevProxy middleware. All frontend requests are proxied to Vite (with HMR), API requests are handled by the fastware router. Kills Vite on shutdown.