ядро платформы
Go to file
2021-12-12 16:00:38 +03:00
auth default user role; updateProfile method 2021-12-08 15:51:30 +03:00
migration remove topic id; topic children as json column 2021-12-12 12:44:54 +03:00
orm load topic parents 2021-12-12 16:00:38 +03:00
redis fix redis client 2021-08-16 15:09:04 +03:00
resolvers load topic parents 2021-12-12 16:00:38 +03:00
.editorconfig tabs editor config 2021-10-30 22:37:57 +03:00
.gitignore pem 2021-10-31 02:42:04 +03:00
.pre-commit-config.yaml wip: redis, sqlalchemy, structured, etc 2021-06-28 12:08:09 +03:00
create_crt.sh fix oauth 2021-11-10 16:46:16 +03:00
Dockerfile local dev with sqlite, exposing port 8080 2021-08-12 10:55:35 +03:00
exceptions.py wip: redis, sqlalchemy, structured, etc 2021-06-28 12:08:09 +03:00
main.py TopShouts -> ShoutsCache 2021-10-31 20:55:59 +03:00
migrate.py create default user; minor fixes 2021-12-10 16:52:55 +03:00
nginx.conf.sigil fix nginx.conf and oauth callback 2021-11-10 17:10:59 +03:00
Pipfile Merge 2021-08-26 18:48:48 +03:00
poetry.lock typo 2021-12-05 23:54:17 +03:00
pyproject.toml typo 2021-12-05 23:54:17 +03:00
README.md migration fixes 2021-11-23 10:16:42 +03:00
requirements.txt initial topicUpdated 2021-11-04 19:37:41 +03:00
schema.graphql load topic parents 2021-12-12 16:00:38 +03:00
server.py update topics logix 2021-10-28 13:42:34 +03:00
settings.py fix oauth 2021-11-10 16:46:16 +03:00

discoursio-api

Tech stack:

  • pyjwt
  • redis
  • ariadne
  • starlette

Local development

Install redis and pipenv first

brew install redis pipenv
brew services start redis

Create certificate files

./create_crt.sh

Then run API server

pipenv install
pipenv run python server.py

Also see Dockerfile

How to do an authorized request

Put the header 'Auth' with token from signInQuery or registerQuery.