ядро платформы
Go to file
2022-11-17 11:44:13 +03:00
auth authorsall-fix 2022-11-16 19:39:54 +03:00
base views from ackee 2022-11-15 12:25:04 +03:00
migration clean bio 2022-11-16 17:38:39 +03:00
orm views from ackee 2022-11-15 12:25:04 +03:00
resolvers fix-authors-sort 2022-11-17 11:11:30 +03:00
services Merge branch 'cudl' of github.com:Discours/discours-backend into cudl 2022-11-17 09:29:36 +03:00
validations 401 2022-11-02 01:38:49 +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
.gitlab-ci.yml fixes-deploy 2022-11-12 15:33:03 +03:00
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
CHECKS CHECKS 2022-11-16 16:55:07 +03:00
Dockerfile fix-docker 2022-11-17 11:44:13 +03:00
main.py migration-email-confirm-fix 2022-11-16 12:25:16 +03:00
nginx.conf.sigil cors-regexp 2022-11-16 10:47:55 +03:00
Procfile dokku zero downtime 2022-11-11 00:37:04 +01:00
README.md Update README.md 2022-11-12 14:56:29 +03:00
requirements.txt pkg-added 2022-11-15 12:31:49 +03:00
schema.graphql get all chat users 2022-11-17 00:34:24 +01:00
server.py fix-scheme 2022-11-08 18:50:28 +03:00
settings.py longer lifespans 2022-11-16 20:28:16 +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, install Postgres. Then you'll need some data


psql -U postgres
> create database discoursio;
> \q
python server.py migrate

Then run nginx, redis and API server

redis-server
pip install -r requirements.txt
python3 server.py dev

How to do an authorized request

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