Skip to content
Public template

About

FastAPI template for Flui — High-performance Python API with native OpenAPI

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Flui Template — FastAPI

A minimal demo application built with FastAPI and ready to deploy on Flui.

Includes:

  • FastAPI with Pydantic v2
  • /health endpoint
  • 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-managed Dockerfile
  • Uvicorn ASGI server

Local development

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload

App runs on http://localhost:8000

Build with Docker

docker build -t flui-demo-fastapi .
docker run -p 8000:8000 flui-demo-fastapi

Environment variables

Variable Default Description
APP_NAME Flui Demo FastAPI App name
APP_VERSION 1.0.0 App version
PORT 8000 HTTP port

Deploy with Flui

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.yaml

The CLI reads the manifest, triggers a build via GitHub Actions and rolls out the workload.

From the UI:

  1. Click Use this template on GitHub.
  2. Connect the new repository to Flui.
  3. Click Deploy.

Built for Flui — see the main repo for cluster setup and CLI installation.

License

MIT

About

FastAPI template for Flui — High-performance Python API with native OpenAPI

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages