2021-06-14 19:21:10 +00:00
|
|
|
# discours-backend-next
|
2021-06-15 12:17:36 +00:00
|
|
|
|
2021-06-30 11:46:19 +00:00
|
|
|
Tech stack:
|
|
|
|
|
|
|
|
- pyjwt
|
|
|
|
- redis
|
|
|
|
- ariadne
|
|
|
|
- starlette
|
|
|
|
|
|
|
|
# Local development
|
|
|
|
|
|
|
|
Install redis first, then start
|
|
|
|
|
|
|
|
'''
|
|
|
|
brew install redis
|
|
|
|
brew services start redis
|
|
|
|
'''
|
|
|
|
|
|
|
|
Then run API server
|
|
|
|
|
|
|
|
'''
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
python3 server.py
|
|
|
|
'''
|
|
|
|
|
|
|
|
# With Docker
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
|
|
|
|
# How to do an authorized request
|
|
|
|
|
|
|
|
Put the header 'Auth' with token from signInQuery in requests.
|