ядро платформы
Go to file
Stepan Vladovskii 86111bc9f5
Some checks failed
Deploy to discoursio-api / deploy (push) Failing after 58s
debug: simplify main.yml for actions
2024-01-24 20:45:34 -03:00
.gitea/workflows debug: simplify main.yml for actions 2024-01-24 20:45:34 -03: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 Feature/google oauth (#106) 2023-11-08 21:12:55 +03: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 lintbump 2023-09-28 15:51:28 +03: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 feat: add ACME location 2023-11-28 14:20:19 -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 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 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