ядро платформы
Go to file
2022-09-18 17:29:21 +03:00
auth fix identity 2022-09-17 22:48:21 +03:00
base migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
migration followers-migrated 2022-09-18 17:29:21 +03:00
orm followers-migrated 2022-09-18 17:29:21 +03:00
resolvers followers-migrated 2022-09-18 17:29:21 +03:00
services migration, auth, refactoring, formatting 2022-09-17 21:12:14 +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 fix oauth 2021-11-10 16:46:16 +03:00
Dockerfile stabledock 2022-07-21 19:06:30 +03:00
main.py migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
nginx.conf localdev nginx.conf fix 2022-09-07 12:52:37 +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 migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
schema.graphql migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
server.py migration, auth, refactoring, formatting 2022-09-17 21:12:14 +03:00
settings.py migration, auth, refactoring, formatting 2022-09-17 21:12: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.