Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 689 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 689 Bytes

Bolerplate FastAPI + Aiogram3 + Poetry Template Project

  • FastAPI
  • Aiogram 3
  • Poetry
  • 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.