ядро платформы
Go to file
Stepan Vladovskiy 9a7852e17c
All checks were successful
deploy / deploy (push) Successful in 29s
feat: add to CI/CD piplin
2023-10-15 15:33:11 -03:00
.gitea/workflows feat: add to CI/CD piplin 2023-10-15 15:33:11 -03:00
.github/workflows my feed query fixed 2023-07-05 16:08:17 +02:00
alembic restructured,inbox-removed 2023-10-05 21:46:18 +03:00
auth token-type-tolerance 2023-10-13 14:47:31 +03:00
orm merged-fix 2023-10-11 11:57:58 +03:00
resolvers token-type-tolerance 2023-10-13 14:47:31 +03:00
schemas some-more-queries 2023-10-13 13:59:24 +03:00
services unread-counter-fix-2 2023-10-13 15:20:06 +03:00
test Feature/notifications (#77) 2023-10-10 09:35:27 +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 ai test.py, sqllite removed 2023-05-09 23:41:13 +02:00
.pre-commit-config.yaml requests-removed+fixes 2023-10-05 22:18:05 +03:00
alembic.ini init alembic (#74) 2023-08-24 11:31:21 +01:00
CHECKS schema-fix 2023-10-06 00:20:02 +03:00
Dockerfile port=8080 2023-10-10 01:09:15 +03:00
lint.sh linter config 2022-12-17 12:06:41 +03:00
main.py merge-fix-7 2023-10-11 13:07:49 +03:00
nginx.conf.sigil debug: sigil / after proxy connect 2023-10-15 15:26:48 -03:00
Procfile dokku zero downtime 2022-11-11 00:37:04 +01:00
README.md feat: add to CI/CD piplin 2023-10-15 15:27:44 -03:00
requirements.txt redis update 2023-10-13 13:13:45 +03:00
resetdb.sh Feature/notifications (#77) 2023-10-10 09:35:27 +03:00
server.py merged 2023-10-11 11:56:46 +03:00
settings.py Feature/notifications (#77) 2023-10-10 09:35:27 +03: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

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

test