ядро платформы
Go to file
2022-09-03 13:50:14 +03:00
auth format and lint orm 2022-09-03 13:50:14 +03:00
base format and lint orm 2022-09-03 13:50:14 +03:00
migration format and lint orm 2022-09-03 13:50:14 +03:00
orm format and lint orm 2022-09-03 13:50:14 +03:00
resolvers format and lint orm 2022-09-03 13:50:14 +03:00
services format and lint orm 2022-09-03 13:50:14 +03:00
.editorconfig format and lint orm 2022-09-03 13:50:14 +03:00
.flake8 format and lint orm 2022-09-03 13:50: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 fix oauth 2021-11-10 16:46:16 +03:00
Dockerfile stabledock 2022-07-21 19:06:30 +03:00
main.py format and lint orm 2022-09-03 13:50:14 +03:00
nginx.conf devnginx 2022-08-11 12:59:35 +03:00
nginx.conf.sigil fix CORS config 2022-04-16 12:56:00 +03:00
README.md migration-usable 2022-08-11 13:06:31 +03:00
requirements.txt format and lint orm 2022-09-03 13:50:14 +03:00
schema.graphql collab-appear 2022-09-02 13:23:33 +03:00
server.py server-cli-todo-cleanup 2022-08-11 14:22:10 +03:00
settings.py format and lint orm 2022-09-03 13:50:14 +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.