ядро платформы
Go to file
2024-01-26 04:24:47 +03:00
.gitea/workflows debug: deploy in branch main of core dokku app 2024-01-24 22:47:36 -03:00
.github/workflows my feed query fixed 2023-07-05 16:08:17 +02:00
orm granian+precommit 2024-01-25 22:41:27 +03:00
resolvers query-fix 2024-01-26 04:24:47 +03:00
schemas search-fix-2 2024-01-26 04:05:25 +03:00
services granian+precommit 2024-01-25 22:41:27 +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
.pre-commit-config.yaml query-fix 2024-01-26 04:24:47 +03:00
CHANGELOG.txt granian+precommit 2024-01-25 22:41:27 +03:00
Dockerfile portfix 2024-01-25 22:55:00 +03:00
main.py granian+precommit 2024-01-25 22:41:27 +03:00
nginx.conf.sigil dokku-conf 2024-01-11 20:23:02 +03:00
pyproject.toml search-fix-2 2024-01-26 04:05:25 +03:00
README.md granian+precommit 2024-01-25 22:41:27 +03:00
settings.py granian+precommit 2024-01-25 22:41:27 +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 granian --no-ws --host 0.0.0.0 --port 8000 --interface asgi main:app

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