General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
Python Flet FastAPI PostgreSQL template using uv.
Sign in to like and favorite skills
Python Flet FastAPI PostgreSQL template using uv.
# Install uv if not already installed curl -LsSf https://astral.sh/uv/install.sh | sh # Create virtual environment and install dependencies uv sync # Copy environment file cp .env.example .env
docker compose up -d
uv run python -m pyffp.run_api
API will be available at http://127.0.0.1:8000
API docs at http://127.0.0.1:8000/docs
In a separate terminal:
uv run python -m pyffp.run_frontend
Frontend will open in your browser at http://127.0.0.1:8550
pyffp/ ├── src/pyffp/ │ ├── __init__.py # Package init │ ├── config.py # Settings management │ ├── db.py # Database connection │ ├── models.py # SQLAlchemy models │ ├── schemas.py # Pydantic schemas │ ├── api.py # FastAPI app and routes │ ├── frontend.py # Flet UI │ ├── run_api.py # API entry point │ └── run_frontend.py # Frontend entry point ├── docker-compose.yml # PostgreSQL container ├── pyproject.toml # Project config └── .env.example # Environment template