The back-end websocket server for wowlet.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
Go to file
dsc e44818bdc6
add a node
il y a 4 semaines
data add a node il y a 4 semaines
utils Initial commit il y a 4 ans
wowlet_backend rates_crypto: sleep il y a 4 semaines
.gitignore Initial commit il y a 4 ans
Dockerfile Await task HistoricalPriceTask._load() and adjust Dockerfile to expose il y a 3 ans
LICENSE Initial commit il y a 4 ans
README.md Update README il y a 3 ans
asgi.py feather-ws -> wowlet-backend il y a 3 ans
docker-compose.yml feather-ws -> wowlet-backend il y a 3 ans
requirements.txt YellWOWpages API - distribute contacts to WS clients il y a 2 ans
run.py feather-ws -> wowlet-backend il y a 3 ans
settings.py_example update cfg il y a 8 mois

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.