Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
dsc
e44818bdc6
|
před 4 týdny | |
---|---|---|
data | před 4 týdny | |
utils | před 4 roky | |
wowlet_backend | před 4 týdny | |
.gitignore | před 4 roky | |
Dockerfile | před 3 roky | |
LICENSE | před 4 roky | |
README.md | před 3 roky | |
asgi.py | před 3 roky | |
docker-compose.yml | před 3 roky | |
requirements.txt | před 2 roky | |
run.py | před 3 roky | |
settings.py_example | před 8 měsíci |
README.md
wowlet-backend
Back-end websocket server for wowlet.
- Quart web framework, Py3 asyncio
- Redis
See also the environment variables WOWLET_COIN_NAME
, WOWLET_COIN_SYMBOL
, etc. in settings.py
.
Tasks
This websocket server has several scheduled recurring tasks:
- Fetch latest blockheight from various block explorers
- Fetch crypto/fiat exchange rates
- Fetch latest Reddit posts
- Fetch funding proposals
- Check status of RPC nodes (
data/nodes.json
)
When Wowlet (the wallet application) starts up, it will connect to this websocket server and receive the information listed above which is necessary for normal operation.
See wowlet_backend.tasks.*
for the various tasks.
Development
Requires Python 3.7 and higher.
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt
export WOWLET_DEBUG=true
python run.py
Note that run.py
is meant as a development server. For production,
use asgi.py
with something like hypercorn.
Docker
In production you may run via docker;
docker-compose up
Will bind on http://127.0.0.1:1337
. Modify docker-compose.yml
if necessary.