notifier/README.md
Untone f940b7461e
All checks were successful
deploy / deploy (push) Successful in 1m18s
schema-fix
2023-11-26 22:00:00 +03:00

33 lines
886 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# notifier
### Что делает
- сохраняет тех, кому уведомления уже были отправлены (redis: authors-online)
- формирует дайджесты для остальных
- слушает Redis PubSub канал с обновлениями реакций
### Что НЕ делает
- не отправляет сообщения по SSE
- не определяет кому их отправлять
## Как разрабатывать локально
1 Читаем доки [strawberry](https://strawberry.rocks/docs/general/schema-basics)
2 Устанавливаем локальные хранилища
- Redis
- Postgres
3 Запуск локального сервера
```shell
mkdir .venv
python3.12 -m venv .venv
poetry env use .venv/bin/python3.12
poetry update
poetry run strawberry server main
```