-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add webui #582
feat: add webui #582
Conversation
Nice! 🎉 Some minor things looking at the screenshot:
|
|
|
Fixed. Orders are merged by price.
Fixed. This is a frontend issue.
WIP.
Fixed (include favicon).
WIP.
Fixed. |
Tested, works. Marked as done.
I tried a couple of things (placing order, switching pairs back and forth) and couldn't make orders being messed up. Marked as done.
I tested this, couldn't reproduce. Removed orders (empty orderbook) and the UI orderbook was empty too. I marked it as done for now, please retest this with this version @raladev
I couldn't see it calling play.google.com, but fonts.googleapis.com, we should remove this one too. |
Last commit removes the googleapis.com call. All good from my side, final ACK by @raladev |
Actually two more things:
|
|
This commit adds xud-webui-poc (ReactJS based frontend) and xud-socketio (NodeJS based backend) into one container `webui`. And the container will expose port 8080 to your host. The frontend app uses REST + Websocket (socketio) API to get the order book of different trading pairs. The backend server translates the REST + Websocket API to gRPC calls and send it back to xud container.
|
Just tested this too, options work all as expected, but found the same two issues as @raladev :
I think we can ignore this one for now and only tackle it if it happens frequently:
|
Done.
Fixed (using supervisord).
The supervisord will take care of the startup failure and restart it. |
@@ -131,3 +131,4 @@ | |||
|
|||
[webui] | |||
#disabled = false | |||
#expose-ports = ["8888"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to #expose-ports = ["8888:8080"]
#disabled = false | ||
#expose-ports = ["28888"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to #expose-ports = ["28888:8080"]
@@ -134,3 +134,4 @@ | |||
|
|||
[webui] | |||
#disabled = false | |||
#expose-ports = ["18888"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to #expose-ports = ["18888:8080"]
This PR adds xud-webui-poc (ReactJS based frontend) and xud-socketio (NodeJS based backend) into one container
webui
. And the container will expose port 8080 to your host. The frontend app uses REST + Websocket (socketio) API to get the order book of different trading pairs. The backend server translates the REST + Websocket API to gRPC calls and send it back to xud container.How to test?
Run
bash setup.sh -b webui --webui
, then you should see a web UI in http://localhost:8080 like below. And it will auto-update when orders changed.Known issues:
--webui
to enable it.EDIT: closes ExchangeUnion/xud#1495, closes ExchangeUnion/xud#1661