ядро платформы
Go to file
Kosta d7dd79336b
Merge pull request #101 from Discours/feature/lint3
configured isort, black, flake8
2023-10-30 23:40:32 +02:00
.github/workflows build fix 2023-10-30 22:34:59 +01:00
alembic configured isort, black, flake8 2023-10-30 22:00:55 +01:00
auth configured isort, black, flake8 2023-10-30 22:00:55 +01:00
base configured isort, black, flake8 2023-10-30 22:00:55 +01:00
migration configured isort, black, flake8 2023-10-30 22:00:55 +01:00
orm configured isort, black, flake8 2023-10-30 22:00:55 +01:00
resolvers configured isort, black, flake8 2023-10-30 22:00:55 +01:00
services configured isort, black, flake8 2023-10-30 22:00:55 +01: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 configured isort, black, flake8 2023-10-30 22:00:55 +01:00
.editorconfig 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 configured isort, black, flake8 2023-10-30 22:00:55 +01: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
checks.sh build fix 2023-10-30 22:09:04 +01:00
Dockerfile fix deploy attempt 3 2023-05-11 14:05:51 +02:00
generate_gql_types.sh configured isort, black, flake8 2023-10-30 22:00:55 +01:00
main.py configured isort, black, flake8 2023-10-30 22:00:55 +01:00
migrate.sh configured isort, black, flake8 2023-10-30 22:00:55 +01:00
nginx.conf.sigil nginx-revert 2022-12-12 13:08:05 +03:00
Procfile configured isort, black, flake8 2023-10-30 22:00:55 +01:00
pyproject.toml configured isort, black, flake8 2023-10-30 22:00:55 +01:00
README.md configured isort, black, flake8 2023-10-30 22:00:55 +01:00
requirements-dev.txt configured isort, black, flake8 2023-10-30 22:00:55 +01:00
requirements.txt configured isort, black, flake8 2023-10-30 22:00:55 +01:00
resetdb.sh configured isort, black, flake8 2023-10-30 22:00:55 +01:00
schema_types.py configured isort, black, flake8 2023-10-30 22:00:55 +01:00
schema.graphql signIn/getSession optimization (#95) 2023-10-19 17:54:38 +03:00
server.py configured isort, black, flake8 2023-10-30 22:00:55 +01:00
settings.py configured isort, black, flake8 2023-10-30 22:00:55 +01:00
setup.cfg configured isort, black, flake8 2023-10-30 22:00:55 +01: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

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