The back-end websocket server for wowlet.
Find a file
2021-04-05 19:49:41 +02:00
data Add selsta nodes 2021-01-06 05:01:28 +01:00
utils Initial commit 2020-10-03 15:40:18 +02:00
wowlet_backend feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00
.gitignore Initial commit 2020-10-03 15:40:18 +02:00
asgi.py feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00
docker-compose.yml feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00
Dockerfile Await task HistoricalPriceTask._load() and adjust Dockerfile to expose 2020-12-22 19:36:07 +01:00
LICENSE Initial commit 2020-10-03 15:40:18 +02:00
README.md feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00
requirements.txt Feather-ws rewrite; 2020-12-22 19:07:24 +01:00
run.py feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00
settings.py_example feather-ws -> wowlet-backend 2021-04-05 19:49:41 +02:00

feather-ws

Back-end websocket server for Feather wallet.

  • Quart web framework, Py3 asyncio
  • Redis

Coins supported

  • Monero
  • Wownero

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 Feather wallet 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.