ядро платформы
Go to file
2022-11-22 04:11:26 +01:00
auth auth and minor fixes 2022-11-22 04:11:26 +01:00
base inbox 2022-11-02 12:23:14 +03:00
migration nochecks 2022-11-19 14:35:34 +03:00
orm fix topics 2022-11-20 10:48:40 +03:00
resolvers auth and minor fixes 2022-11-22 04:11:26 +01:00
services auth and minor fixes 2022-11-22 04:11:26 +01: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 auth and minor fixes 2022-11-22 04:11:26 +01:00
Procfile dokku zero downtime 2022-11-11 00:37:04 +01:00
README.md auth and minor fixes 2022-11-22 04:11:26 +01:00
requirements.txt -storage 2022-11-21 07:36:40 +03:00
schema.graphql fixes-api 2022-11-21 11:13:57 +03:00
server.py devfixes 2022-11-20 06:16:56 +03:00
settings.py auth and minor fixes 2022-11-22 04:11:26 +01: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 'Authorization' with token from signInQuery or registerQuery.