core/README.md

36 lines
482 B
Markdown
Raw Normal View History

2021-07-13 10:14:48 +00:00
# discours-backend-next
Tech stack:
- pyjwt
- redis
- ariadne
- starlette
# Local development
Install redis and pipenv first
```
brew install redis pipenv
brew services start redis
```
2021-07-13 23:05:38 +00:00
Create certificate files
```sh
./create_crt.sh
```
2021-07-13 10:14:48 +00:00
Then run API server
```
2021-07-13 23:05:38 +00:00
pipenv install
2021-07-29 17:51:34 +00:00
pipenv run python server.py
2021-07-13 10:14:48 +00:00
```
2021-07-29 17:51:34 +00:00
Also see `Dockerfile`
2021-07-13 10:14:48 +00:00
# How to do an authorized request
2021-08-09 15:45:51 +00:00
Put the header 'Auth' with token from signInQuery or registerQuery.