- Notifications
You must be signed in to change notification settings - Fork0
Paint app using GWT + Canvas + RxJava
License
ibaca/rxcanvas-gwt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A super simple painter app (based onRxPaint) developed usingGWT (java to javascript framework),RxJava (event composition library) andCanvas (draw graphics via scripting).
Run usingmvn gwt:devmode
and package usingmvn package
.
Deployed includingsourceMaps
andsource code
, so you can just enterhere,open your preferred developer tool an navigate through thejava
source code.
The app demonstrates how to combine UI, request and bus events uniformly usingObservables
. Tocommunicate to a remote device it usesChrome cast
, the app implements in the same entry point boththe sender and the receiver code, and bind the corresponding observable if available. If you wantto test theChrome cast
app locally you need to create your own application in theGoogle Cast SDK Developer console and use your localip in theReceiver application URL (e.g.http://192.168.1.100:8888/rxcanvas/receiver.html
). Once youhave yourApplication ID
you can override it executing devmode with theapplicationId
param(e.g.mvn gwt:devmode -DapplicationId=XXXYYYZZZ
)TIP You don't need to re-cast your app to reloadcode changes in the receiver side, just pressctrl+r
in the developer console and GWT will trigger arecompilation automatically. This works in the sender-side/normal-web-side, but I spouse you already know that.