Re: Phix, and p2js

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

Whats the actual process of getting a Phix program to appear in someone elses browser. Step by step. If you could be so kind.

Can I assume you are ok with debugging on desktop/Phix, running pwa/p2js, and getting it to run in your browser?

The files have to be uploaded and hosted somewhere, as provided by your ISP or some other free or paid hosting service, ok with that part too?.

So, in http://phix.x10.mx/p2js/ (even I get a 403 on that url) I have previously uploaded p2js.js, pGUI.js, pGUI.css, and a builtins/ directory containing 58 files as populated by pwa/p2js.exw in C:\Program Files[ x86]\Phix\pwa\builtins (about 1.4MB in total). Having got some demo to run in my browser, I upload pwa/test.htm, rename it to something more appropriate such as primefib.htm, and then I can invite people to run http://phix.x10.mx/p2js/primefib.htm in their browser - nothing else to it. Of course I am specifically using a p2js\ subfolder on the Phix site, but there is no reason why you would have to do the same. Likewise there is nothing preventing you from shipping a zip of those files (pwa\test.htm will tell you exactly which ones are needed) so that someone else can run it locally from wherever they unzip it.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu