No description
  • Python 98.5%
  • Mako 0.8%
  • Dockerfile 0.7%
Find a file
markerbit 614ab346a1
All checks were successful
ci / docker (push) Successful in 1m26s
Update .github/workflows/docker-build.yml
2026-02-20 13:57:27 +00:00
.github/workflows Update .github/workflows/docker-build.yml 2026-02-20 13:57:27 +00:00
alembic bugfix: new accounts with big telegram IDs couldn't install. Now the IDs 2025-12-23 15:34:44 +03:00
datoved fixed issues 2026-01-19 16:18:44 +03:00
DOCS big improvements 2025-12-22 21:17:32 +03:00
.dockerignore added topics and things 2025-12-19 17:15:05 +03:00
.env.docker Updated Docker things 2025-12-22 21:49:38 +03:00
.env.example added topics and things 2025-12-19 17:15:05 +03:00
.gitignore big improvements 2025-12-22 21:17:32 +03:00
.python-version VERY BIG CODE IMPROVEMENTS using basedpyright + python 3.11>= 2025-11-13 16:21:21 +03:00
alembic.ini initial commit 2025-04-19 09:52:13 +03:00
docker-compose.prod.yml Updated Docker things 2025-12-22 21:49:38 +03:00
docker-compose.yml added topics and things 2025-12-19 17:15:05 +03:00
Dockerfile Fixes to CI 2026-01-19 16:28:46 +03:00
pyproject.toml VERY BIG CODE IMPROVEMENTS using basedpyright + python 3.11>= 2025-11-13 16:21:21 +03:00
questions.csv initial commit 2025-04-19 09:52:13 +03:00
README.md added topics and things 2025-12-19 17:15:05 +03:00
requirements.txt initial commit 2025-04-19 09:52:13 +03:00
tox.ini added topics and things 2025-12-19 17:15:05 +03:00
uv.lock VERY BIG CODE IMPROVEMENTS using basedpyright + python 3.11>= 2025-11-13 16:21:21 +03:00

Датовед

Датовед - Telegram-бот для запоминания дат по истории и литературе.

Стэк

  • aiogram
  • pydantic
  • SQLAlchemy
  • alembic
  • asyncpg

Запуск

  • Скопировать .env.example в .env и скорректировать

Docker

  • Установить Docker и Compose
  • Запустить docker compose up

Получение админ-панели

  • Подключиться к базе данных: docker exec -it db psql -U postgres
  • Выполнить \c postgres
  • Ввести команду UPDATE public.user SET admin = true WHERE telegram_id = <telegram_id>;

Локальная разработка

Для разработки необходимо установить uv.

  • Инициализировать виртуальное окружение: uv venv
  • Установить зависимости: uv sync
  • Запустить базу данных PostgreSQL. Например: docker run --name db -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres
  • Запустить бота: uv run main.py