All templates
Python 3.13

FastAPI + Postgres starter

A small CRUD API you can grow into your own service, live on its own URL in minutes, with every endpoint testable from the browser at /docs. FastAPI, SQLAlchemy 2 and Pydantic on managed Postgres: tables are created on start, the app waits for the database instead of crashing, and /healthz reports honestly. Deploying it creates a managed Postgres and connects it for you.

Managed Postgres FastAPI REST API

One click creates the app and connects what it needs

  • A managed Postgres, bound as DATABASE_URL (Starter, €4.95/month)

The first deploy waits until it is ready, so the app starts connected. You can untick it before creating the app.

Deploy this template You will sign in first. We keep your pick.

The source

This template is an ordinary public repository. Read it, fork it, or open a pull request against it. Deploying pulls its default branch and builds it the same way velixir builds your own code.

velixirnet/template-fastapi-postgres

Once it is live

The template is just a starting point. Clone it, edit it, then ship over the top with the CLI:

velixir deploy

Or push your copy to GitHub and connect it on the app's Deploys tab: every push ships a release, and each pull request gets a preview. Both run the same pipeline this template just went through.