ядро платформы
Go to file
2024-01-23 22:12:22 +03:00
.gitea/workflows v2-deploy 2024-01-13 11:03:35 +03:00
.github/workflows my feed query fixed 2023-07-05 16:08:17 +02:00
orm resolvers-fix 2023-12-23 22:00:22 +03:00
resolvers cached-auth 2024-01-23 21:34:51 +03:00
schemas visibility-fix 2024-01-23 19:51:26 +03:00
services auth-uncache 2024-01-23 22:12:22 +03:00
.editorconfig migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
.gitignore unread-fixes 2024-01-23 04:03:15 +03:00
CHANGELOG.txt 0.2.21-ga 2024-01-23 16:04:38 +03:00
Dockerfile curl-fix 2023-11-23 00:19:15 +03:00
main.py reactions-sort-groupby-fix 2024-01-13 10:27:45 +03:00
nginx.conf.sigil dokku-conf 2024-01-11 20:23:02 +03:00
pyproject.toml 0.2.21-ga 2024-01-23 16:04:38 +03:00
README.md unread-fixes 2024-01-23 04:03:15 +03:00
server.py sqlalchemy-debug 2023-12-24 17:25:57 +03:00
settings.py search-query-fix-3 2023-12-25 04:45:21 +03:00

discoursio-core

  • sqlalchemy
  • redis
  • ariadne
  • starlette
  • uvicorn

Local development

Install deps first

on osx

brew install redis nginx postgres
brew services start redis

on debian/ubuntu

apt install redis nginx

Then run nginx, redis and API server

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

Services

Auth

Setup WEBHOOK_SECRET env var, webhook payload on /new-author is expected when User is created. In front-end put the header 'Authorization' with token from signIn query or registerUser mutation.

Viewed

Set GOOGLE_ANALYTICS_TOKEN var to collect stats

Seacrh

ElasticSearch

Notifications

Connected using Redis PubSub channels

Inbox

To get unread counter raw redis query to Inbox's data is used

Following Manager

Internal service with async access to storage