discours.io as messenger
Go to file
Untone 93c1727be3
All checks were successful
deploy / deploy (push) Successful in 1m8s
load-recipients-fix
2023-12-18 20:59:20 +03:00
.gitea/workflows feat: add this repo to CI/CD chain 2023-10-15 13:53:20 -03:00
models unread-counter-fix 2023-12-18 03:15:59 +03:00
resolvers load-recipients-fix 2023-12-18 20:59:20 +03:00
services load-recipients-fix 2023-12-18 20:59:20 +03:00
.editorconfig formatted 2023-10-14 15:59:43 +03:00
.gitignore pyright-fix 2023-11-27 11:13:17 +03:00
CHANGELOG.txt get-author-fix-7 2023-12-18 03:01:46 +03:00
Dockerfile pyproject-build-2 2023-10-14 14:54:51 +03:00
inbox.graphql no-services-2 2023-12-02 14:04:04 +03:00
main.py sorted 2023-12-17 20:13:17 +03:00
nginx.conf.sigil feat: add /connect/ 2023-10-18 07:38:56 -03:00
pyproject.toml get-author-fix-7 2023-12-18 03:01:46 +03:00
README.md pyright-fix 2023-11-27 11:13:17 +03:00
server.py format+fix 2023-11-14 21:25:55 +03:00
settings.py feat: with sdl resolver in schema.py 2023-12-01 22:56:50 -03:00

inbox: Сервер для внутренних переписок

ENV

  • REDIS_URL
  • AUTH_URL
  • API_BASE

Как это работает

Redis:

  • Для каждого пользователя создаётся запись в хранилищах chats_by_author/<chat_id> и chats/<chat_id> и канал redis chat:<chat_id>, в котором публикуюутся обновления всех переписок.

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

Запуск локального сервера

mkdir .venv
python3.12 -m venv .venv
poetry env use .venv/bin/python3.12
poetry update
poetry run python server.py