ядро платформы
Go to file
2022-11-12 14:56:29 +03:00
auth added password hash check 2022-11-10 22:47:19 +01:00
base inbox 2022-11-02 12:23:14 +03:00
migration imports-format+id-fix+remigrate 2022-11-10 08:53:19 +03:00
orm imports-format+id-fix+remigrate 2022-11-10 08:53:19 +03:00
resolvers getTopic, getAuthor fix 2022-11-11 16:32:30 +01:00
services imports-format+id-fix+remigrate 2022-11-10 08:53:19 +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
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
CHECKS checks disabled (server doesn't have enough resources to start 2 instances of the api) 2022-11-11 18:26:32 +01:00
create_crt.sh certs-gen 2022-09-22 19:25:32 +03:00
Dockerfile dokku zero downtime 2022-11-11 00:37:04 +01:00
main.py confirm-token-fix 2022-10-23 12:33:28 +03:00
nginx.conf.sigil new CORS header 2022-11-10 22:52:39 +01: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 test-jwt 2022-10-31 21:02:06 +03:00
schema.graphql fix-init-import 2022-11-10 11:00:51 +03:00
server.py fix-scheme 2022-11-08 18:50:28 +03:00
settings.py confirm-token-fix 2022-10-23 12:33:28 +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.