ядро платформы
Go to file
2022-11-26 02:49:02 +03:00
auth frontend url setting 2022-11-26 02:49:02 +03:00
base fixes-for-inbox-auth-and-startup-faster 2022-11-26 01:35:42 +03:00
migration fixes-for-inbox-auth-and-startup-faster 2022-11-26 01:35:42 +03:00
orm init 2022-11-24 11:27:01 +03:00
resolvers frontend url setting 2022-11-26 02:49:02 +03:00
services fixes-for-inbox-auth-and-startup-faster 2022-11-26 01:35:42 +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 dev server reload 2022-11-23 00:51:29 +01: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
CHECKS re-enable-checks 2022-11-22 09:22:04 +03:00
Dockerfile fix-docker 2022-11-17 11:44:13 +03:00
main.py fixes-for-inbox-auth-and-startup-faster 2022-11-26 01:35:42 +03:00
nginx.conf.sigil CORS any localhost port 2022-11-25 12:20:08 +01:00
Procfile dokku zero downtime 2022-11-11 00:37:04 +01:00
README.md readme fix 2022-11-22 08:18:48 +03:00
requirements.txt -storage 2022-11-21 07:36:40 +03:00
schema.graphql fixes-for-inbox-auth-and-startup-faster 2022-11-26 01:35:42 +03:00
server.py minors 2022-11-24 19:02:42 +03:00
settings.py frontend url setting 2022-11-26 02:49:02 +03:00

discoursio-api

  • sqlalchemy
  • redis
  • ariadne
  • starlette
  • uvicorn

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 signIn query or registerUser mutation.