Skip to content

khasanjon-dev/FastApi-Template-Async

Repository files navigation

FastAPI Async Template

A minimal async-ready FastAPI template with Docker support.

Prerequisites

  • Git
  • Docker + Docker Compose (recommended)

Clone the repository

git clone https://github.com/khasanjon-dev/FastApi-Template-Async.git
cd FastApi-Template-Async

Environment variables (.env)

  1. Create a .env file.
  2. Copy values from .env.example and adjust them for your environment.

Run with Docker

Build and start

docker compose up --build

Run in background

docker compose up -d --build

API Documentation (Swagger / OpenAPI)

When the project is running, open Swagger UI here:

API Endpoints

This project exposes its endpoints via Swagger UI.

To see the full and up-to-date list of APIs:

  1. Run the project (Docker or local).
  2. Open: http://localhost:8000/docs

Stop containers

docker compose down

View logs

docker compose logs -f