ядро платформы
Go to file
2023-08-05 00:21:54 +02:00
.github/workflows my feed query fixed 2023-07-05 16:08:17 +02:00
ai ai test.py, sqllite removed 2023-05-09 23:41:13 +02:00
auth checks enabled 2023-07-13 16:58:22 +02:00
base ai test.py, sqllite removed 2023-05-09 23:41:13 +02:00
migration fix app author 2023-01-31 20:17:02 +03:00
orm Revert "Revert "store views on the shouts table, remove the viewed table"" 2023-08-05 00:21:54 +02:00
resolvers Revert "Revert "store views on the shouts table, remove the viewed table"" 2023-08-05 00:21:54 +02:00
services Revert "Revert "store views on the shouts table, remove the viewed table"" 2023-08-05 00:21:54 +02: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 ai test.py, sqllite removed 2023-05-09 23:41:13 +02:00
.pre-commit-config.yaml versions.. 2022-06-25 23:18:03 +03:00
CHECKS checks enabled 2023-07-13 16:58:22 +02:00
Dockerfile fix deploy attempt 3 2023-05-11 14:05:51 +02:00
lint.sh linter config 2022-12-17 12:06:41 +03:00
main.py upload endpoint 2023-07-13 15:01:58 +02:00
migrate.sh new create shout flow 2023-05-03 17:47:09 +02: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 upload endpoint 2023-07-13 15:01:58 +02:00
resetdb.sh resetdb update (v2), loadDrafts 2023-05-05 00:59:04 +02:00
schema.graphql added layout and media fields to ShoutInput 2023-06-03 11:53:30 +02:00
server.py shout rating and views count fixed 2023-01-17 22:07:44 +01:00
settings.py ai test.py, sqllite removed 2023-05-09 23:41:13 +02: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