ядро платформы
Go to file
2023-02-17 10:38:45 +03:00
auth fix-session 2023-01-31 09:57:35 +03:00
base base-unmapped 2023-01-31 10:44:06 +03:00
migration fix app author 2023-01-31 20:17:02 +03:00
orm allow-base 2023-01-31 10:36:54 +03:00
resolvers Merge branch 'main' of github.com:Discours/discours-backend into main 2023-02-17 10:38:45 +03:00
services page views 2023-01-18 22:25:35 +01:00
validations scope-passed 2022-12-13 03:44:35 +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 shout rating and views count fixed 2023-01-17 22:07:44 +01:00
.gitlab-ci.yml simple body title search, reacted filted fix 2022-11-17 22:47:40 +03:00
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
CHECKS checks-back 2023-01-31 20:19:48 +03:00
Dockerfile unlabel 2022-12-02 16:52:16 +03:00
lint.sh linter config 2022-12-17 12:06:41 +03:00
main.py upgrade-ws 2023-01-31 10:07:04 +03:00
nginx.conf.sigil nginx-revert 2022-12-12 13:08:05 +03:00
Procfile dokku zero downtime 2022-11-11 00:37:04 +01:00
README.md fixd 2022-12-03 12:50:18 +03:00
requirements-dev.txt linter config 2022-12-17 12:06:41 +03:00
requirements.txt bump-sentry 2023-01-31 10:16:06 +03:00
schema.graphql [hotfix] add ID to updateReaction 2023-02-06 16:15:47 +03:00
server.py shout rating and views count fixed 2023-01-17 22:07:44 +01:00
settings.py shout rating and views count fixed 2023-01-17 22:07:44 +01: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