Skip to content

hexfrost/fastapi-aiogram-template

Repository files navigation

FastAPI + Aiogram3 + UV

  • FastAPI
  • Aiogram 3
  • Uv
  • Docker

Quickstart

Copy example with required env variables

cp .env.example .env

Get BOT_TOKEN from BotFather and set it in .env file and set BASE_DOMAIN for webhook.

Your .env file should look like this:

BOT_TOKEN=6694236732:fvevftgvthjadafgvtvg 
BASE_DOMAIN=https://public-domain.example.com

APP_PORT=8000 # optional
APP_HOST=0.0.0.0 # optional

Run with poetry

poetry install

Run with docker-compose

docker compose up --build

API will be available at http://localhost:8000 by default.

Releases

No releases published

Packages

No packages published