commit | f259fb68051208df49741af3758224d406b59365 | [log] [tgz] |
---|---|---|
author | Asim Shankar <ashankar@google.com> | Wed Apr 01 14:12:16 2015 -0700 |
committer | Asim Shankar <ashankar@google.com> | Wed Apr 01 14:12:20 2015 -0700 |
tree | d606ed752256120a0a4faa2002eb7a9413e18317 | |
parent | bebce3148996c4a3c6bdccf9421a26490c721ba1 [diff] |
TBR: vdl: Counterpart of https://vanadium-review.googlesource.com/9136 MultiPart: 4/4 Change-Id: Ibda34172af6696d4b60cf3d86a97e4dfd4f0cdfa
P2B allows one to pipe anything from shell console to the browser. Data being piped to the browser then is displayed in a graphical and formatted way by a “viewer” Viewers are pluggable pieces of code that know how to handle and display a stream of data.
For example one can do:
echo "Hi!" | p2b google/p2b/jane/console
or
cat cat.jpg | p2b -binary google/p2b/jane/image
where google/p2b/jane is the Object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.
Please see the help page inside the P2B application for detailed tutorials.
To build make
To run make start #Starts a web server at 8080
and then navigate to http://localhost:8080
To stop simply Ctrl-C the console that started it
To clean make clean