A minimal demo application built with FastAPI and ready to deploy on Flui.
Includes:
- FastAPI with Pydantic v2
/healthendpoint- In-memory item store with full CRUD on
/items - OpenAPI 3 spec auto-generated by FastAPI at
/api/openapi - Swagger UI at
/docs - Multi-stage
#flui-managedDockerfile - Uvicorn ASGI server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadApp runs on http://localhost:8000
docker build -t flui-demo-fastapi .
docker run -p 8000:8000 flui-demo-fastapi| Variable | Default | Description |
|---|---|---|
APP_NAME |
Flui Demo FastAPI |
App name |
APP_VERSION |
1.0.0 |
App version |
PORT |
8000 |
HTTP port |
This repo ships with a flui.yaml manifest describing the build strategy, port, healthcheck and resource profile.
From the CLI, with flui installed and authenticated against your cluster:
flui deploy ./flui.yamlThe CLI reads the manifest, triggers a build via GitHub Actions and rolls out the workload.
From the UI:
- Click Use this template on GitHub.
- Connect the new repository to Flui.
- Click Deploy.
Built for Flui — see the main repo for cluster setup and CLI installation.
MIT