1. Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1657 views
For anyone who might be interested:
EuGTK programs run just fine in Firefox using broadway.
You just start the broadway server > broadwayd then connect to http://localhost:8080, and run your EuGTK program. It will appear instantly on your html5 browser, looking just like it did running 'natively'.
Presumably, if you're running a server on the net, people anywhere should be able to run your Eu program as well. Perhaps even from an Android phone.
Below are some links that explain what broadway does:
http://techgage.com/news/gtk_30s_broadway_feature_allows_applications_to_run_in_a_browser
Here's how to run your program. Just replace the gedit in the example with eui test0 (or whatever).
http://www.webupd8.org/2013/06/how-to-install-gtk3-with-broadway-html5.html
Should work on Windows, too, but like everything Windows, it's a bit more complicated:
http://www.tarnyko.net/en/?q=node/8
2. Re: Running Eu programs in web browser
- Posted by ghaberek (admin) Jun 11, 2015
- 1572 views
Neat!
-Greg
3. Re: Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1606 views
https://sites.google.com/site/euphoriagtk/
The screen shot on the web page above is Pete's Wee editor, editing and running test40.ex, all in a Firefox window.
My next step is to see if I can run WEE on my tablet, via wifi.
4. Re: Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1609 views
Works fine. I can edit, save and run Eu programs using Wee from my google tablet by connecting the browser to 192.168.1.100:8080 (YMMV).
For editing, a bluetooth keyboard is pretty much necessary if you expect to get anything done.
Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).
5. Re: Running Eu programs in web browser
- Posted by GreenEuphorian Jun 11, 2015
- 1540 views
Is Euphoria running as client-side or server-side?
6. Re: Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1574 views
Is Euphoria running as client-side or server-side?
My tablet doesn't have Eu. Just Firefox.
Edit: to further clarify, my computer running Eu doesn't have apache or other webserver installed, just broadwayd, which I think comes already installed as part of GTK3 (in Ubuntu, at least).
7. Re: Running Eu programs in web browser
- Posted by ghaberek (admin) Jun 11, 2015
- 1539 views
Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).
They could also use it to trash the crap out of your network without the proper security measures in place. Does Broadway offer anything in the way of user authentication? If not, you could probably put nginx in front of the Broadway server. This would have the added benefit of allowing you to listen publicly on port 80 (HTTP) or 443 (HTTPS) and then redirect to 8080 if and only if the user is authenticated.
-Greg
8. Re: Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1593 views
Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).
They could also use it to trash the crap out of your network without the proper security measures in place. Does Broadway offer anything in the way of user authentication? If not, you could probably put nginx in front of the Broadway server. This would have the added benefit of allowing you to listen publicly on port 80 (HTTP) or 443 (HTTPS) and then redirect to 8080 if and only if the user is authenticated.
-Greg
https://developer.gnome.org/gtk3/stable/broadwayd.html
Obviously, password protection wouldn't be enough. I seldom deal with network security issues. There's probably a better way.
9. Re: Running Eu programs in web browser
- Posted by irv Jun 11, 2015
- 1519 views
Well... I just 'ported' a Linux accounts receivable program I wrote so that clerks can use their ipads/tablets to check on customers' balances, etc.
I was dreading having to do a total rewrite, but as it turns out, it works fine using broadway without having to change any code at all. (Of course, I'll have to add some file locking, so 2 people don't try to change the same account simultaneously)
Print previews don't work properly, but I can just disable the previews, and go straight to printer.