Fullstack Telegram WebApp (aiogram 3 + fastapi + socketio + Vanilla JS)
Run Docker compose to test WebApp with self-signed certs on your local machine
- create template database
sudo -u postgres psql -c 'create database template;'- run alembic migration
sudo python alembic_tool.py-
set required env variables
APP_CONFIG__DB__URL- database url
APP_CONFIG__BOT__TOKEN- your bot token
APP_CONFIG__MAPP__HOST- webapp access address (docker interface ip for local use) -
run docker compose
sudo docker compose up --build -d- bot - simple aiogram bot template + user id database storage
- webapp - fastapi + socketio backend
Static JS view
Nginx proxy with self signed certs for accessing WebApp bypassing Telegram HTTP protocol ban
Also can be used as a proxy for telegram webhooks
