ядро платформы
Go to file
2023-12-21 11:49:28 +01: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 google oauth fix 2023-11-08 19:24:38 +01:00
base Fix/deploy fix (#103) 2023-10-31 18:48:00 +03:00
migration configured isort, black, flake8 2023-10-30 22:00:55 +01:00
orm timezones fixed once again (#107) 2023-11-14 14:56:41 +03:00
resolvers only published in random topic shouts (#114) 2023-12-21 11:49:28 +01:00
services test article (#104) 2023-11-04 19:44:58 +03:00
test test article (#104) 2023-11-04 19:44:58 +03: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 Fix/deploy fix (#103) 2023-10-31 18:48:00 +03: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 Feature/google oauth (#106) 2023-11-08 21:12:55 +03: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 my feed query fixed 2023-10-31 14:52:58 +01:00
requirements-dev.txt configured isort, black, flake8 2023-10-30 22:00:55 +01:00
requirements.txt Feature/google oauth (#106) 2023-11-08 21:12:55 +03:00
resetdb.sh configured isort, black, flake8 2023-10-30 22:00:55 +01:00
schema.graphql random topic shouts query, published date filter in random tops (#113) 2023-12-21 00:53:53 +01:00
server.py configured isort, black, flake8 2023-10-30 22:00:55 +01:00
settings.py Feature/google oauth (#106) 2023-11-08 21:12:55 +03:00
setup.cfg configured isort, black, flake8 2023-10-30 22:00:55 +01:00

discoursio-api

  • sqlalchemy
  • redis
  • ariadne
  • starlette
  • uvicorn

on osx

brew install redis nginx postgres
brew services start redis

on debian/ubuntu

apt install redis nginx

Local development

Install deps first

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

Create database from backup

./restdb.sh

Start local server

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