6
2
Derivar 3
The back-end websocket server for wowlet.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
Ir para o ficheiro
dsc e44818bdc6
add a node
há 4 semanas
data add a node há 4 semanas
utils Initial commit há 4 anos
wowlet_backend rates_crypto: sleep há 4 semanas
.gitignore Initial commit há 4 anos
Dockerfile Await task HistoricalPriceTask._load() and adjust Dockerfile to expose há 3 anos
LICENSE Initial commit há 4 anos
README.md Update README há 3 anos
asgi.py feather-ws -> wowlet-backend há 3 anos
docker-compose.yml feather-ws -> wowlet-backend há 3 anos
requirements.txt YellWOWpages API - distribute contacts to WS clients há 2 anos
run.py feather-ws -> wowlet-backend há 3 anos
settings.py_example update cfg há 8 meses

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.