ядро платформы
Go to file
2022-11-21 08:45:52 +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 nochecks 2022-11-19 14:35:34 +03:00
orm fix topics 2022-11-20 10:48:40 +03:00
resolvers need-remigration 2022-11-21 08:18:50 +03:00
services need-remigration 2022-11-21 08:18:50 +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 simple body title search, reacted filted fix 2022-11-17 22:47:40 +03:00
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
disabled-CHECKS nochecks 2022-11-19 14:35:34 +03:00
Dockerfile fix-docker 2022-11-17 11:44:13 +03:00
main.py nochecks 2022-11-19 14:35:34 +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 -storage 2022-11-21 07:36:40 +03:00
schema.graphql optional viewed in topicstat 2022-11-21 08:45:52 +03:00
server.py devfixes 2022-11-20 06:16:56 +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.