ядро платформы
Go to file
2022-11-15 12:25:04 +03:00
auth added password hash check 2022-11-10 22:47:19 +01:00
base views from ackee 2022-11-15 12:25:04 +03:00
migration views from ackee 2022-11-15 12:25:04 +03:00
orm views from ackee 2022-11-15 12:25:04 +03:00
resolvers views from ackee 2022-11-15 12:25:04 +03:00
services views from ackee 2022-11-15 12:25:04 +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
disabled-CHECKS unchecks 2022-11-13 19:44:54 +03:00
Dockerfile dokku zero downtime 2022-11-11 00:37:04 +01:00
main.py views from ackee 2022-11-15 12:25:04 +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 ackee connector wip, mdx code fix 2022-11-14 12:57:47 +03:00
schema.graphql views from ackee 2022-11-15 12:25:04 +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.