FastAPI backend template for developing tools, demos, projects that involve LLMs.
- Python 3.13
- uv
Clone the repo:
git clone https://github.com/aihpi/backend-template.git
cd backend-template
Create virtual environment:
python3 -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
Install dependencies with uv:
uv sync
To start the backend, run:
app
If you want to configure the port and/or host:
HOST=0.0.0.0 PORT=8080 app