ядро платформы
Go to file
2022-10-05 19:52:17 +03:00
auth fix-confirm 2022-10-05 19:52:17 +03:00
base stats refactored 2022-09-19 16:50:43 +03:00
migration fix-more 2022-10-05 19:17:38 +03:00
orm fix-lastseen 2022-10-05 18:54:29 +03:00
resolvers fix-confirm 2022-10-05 19:52:17 +03:00
services use-dict 2022-10-05 15:22:56 +03:00
validations migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
.editorconfig migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
.flake8 migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
.gitignore resolvers, orm, migration, schema fixes 2022-08-14 15:48:35 +03:00
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
create_crt.sh certs-gen 2022-09-22 19:25:32 +03:00
Dockerfile stabledock 2022-07-21 19:06:30 +03:00
main.py fix-confirm 2022-10-05 19:52:17 +03:00
nginx.conf.sigil sigil-update 2022-09-23 12:14:48 +03:00
README.md migration-usable 2022-08-11 13:06:31 +03:00
requirements.txt migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
schema.graphql fix-lastseen 2022-10-05 18:54:29 +03:00
server.py migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
settings.py fix-lastseen 2022-10-05 18:54:29 +03:00

discoursio-api

Tech stack:

  • pyjwt
  • redis
  • ariadne
  • starlette

Local development

Install deps first

on osx

brew install redis nginx
brew services start redis

on debian/ubuntu

apt install redis nginx

First, you'll need some data

python server.py migrate

Then run nginx, redis and API server

redis-server

cp nginx.conf /usr/local/etc/nginx/.
nginx -s reload

pip install -r requirements.txt
python server.py

How to do an authorized request

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