Files
full-stack-fastapi-template/scripts/generate-client.sh
T
Sebastián Ramírezandgithub-actions[bot] e80d92452e ♻️ Serve frontend from FastAPI (#2393)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-30 21:41:08 +02:00

12 lines
268 B
Bash

#! /usr/bin/env bash
set -e
set -x
cd backend
FASTAPI_ENV=development uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
mv openapi.json frontend/
bun run --filter frontend generate-client
bun run lint