ядро платформы
Go to file
Igor Lobanov 1c49780cd4 lint wip
2023-10-26 20:05:32 +02:00
.github/workflows my feed query fixed 2023-07-05 16:08:17 +02:00
ai lint wip 2023-10-26 19:56:42 +02:00
alembic lint wip 2023-10-26 19:56:42 +02:00
auth lint wip 2023-10-26 20:05:32 +02:00
base lint wip 2023-10-26 19:56:42 +02:00
migration lint wip 2023-10-26 19:56:42 +02:00
orm lint wip 2023-10-26 19:56:42 +02:00
resolvers lint wip 2023-10-26 20:05:32 +02:00
services lint wip 2023-10-26 19:56:42 +02:00
test new thumbor (assets.discours.io -> images.discours.io), new visibility for non published articles (authors -> community) 2023-10-25 22:38:22 +02:00
validations lint wip 2023-10-26 19:56:42 +02: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 ai test.py, sqllite removed 2023-05-09 23:41:13 +02:00
.pre-commit-config.yaml lint wip 2023-10-26 20:05:32 +02:00
alembic.ini init alembic (#74) 2023-08-24 11:31:21 +01:00
CHECKS checks enabled 2023-07-13 16:58:22 +02:00
Dockerfile fix deploy attempt 3 2023-05-11 14:05:51 +02:00
lint.sh linter config 2022-12-17 12:06:41 +03:00
main.py lint wip 2023-10-26 20:05:32 +02:00
migrate.sh lint wip 2023-10-26 19:56:42 +02:00
nginx.conf.sigil nginx-revert 2022-12-12 13:08:05 +03:00
Procfile lint wip 2023-10-26 19:56:42 +02:00
README.md lint wip 2023-10-26 19:56:42 +02:00
requirements-dev.txt lint wip 2023-10-26 19:56:42 +02:00
requirements.txt Feature/deploy fix (#90) 2023-10-11 14:10:09 +03:00
resetdb.sh lint wip 2023-10-26 19:56:42 +02:00
schema.graphql signIn/getSession optimization (#95) 2023-10-19 17:54:38 +03:00
server.py lint wip 2023-10-26 19:56:42 +02:00
settings.py lint wip 2023-10-26 19:56:42 +02:00
setup.cfg linter config 2022-12-17 12:06:41 +03:00

discoursio-api

  • sqlalchemy
  • redis
  • ariadne
  • starlette
  • uvicorn

Local development

Install deps first

on osx

brew install redis nginx postgres
brew services start redis

on debian/ubuntu

apt install redis nginx

First, install Postgres. Then you'll need some data, so migrate it:

createdb discoursio
python server.py migrate

Then run nginx, redis and API server

redis-server
pip install -r requirements.txt
python3 server.py dev

pre-commit hook

pip install -r requirements-dev.txt
pre-commit install

How to do an authorized request

Put the header 'Authorization' with token from signIn query or registerUser mutation.

How to debug Ackee

Set ACKEE_TOKEN var