Page 1 of 1

Web program

Posted: Mon Jun 18, 2018 6:30 pm
by Jarlve
Hey all,

I wrote a small test program with SpiderBasic and I am interested in creating a "web program" though I am not sure how that works exactly.

- I assume that every web program runs on a server or computer that is connected to the internet?
- Does that web program then use the resources of the server to run the program or can the client run the program?
- I want to test my program as a web program that has a real web address. Where do I start? What do I have to do?

Thank you.

Re: Web program

Posted: Tue Jun 19, 2018 10:05 am
by falsam
Hello Jarlve. Welcome on board ;)
Jarlve wrote:I assume that every web program runs on a server or computer that is connected to the internet?
A web application coded with SpiderBasic runs on a server.
This server can be local or remote.
Jarlve wrote:Does that web program then use the resources of the server to run the program or can the client run the program?
SpiderBasic generates JavaScript code that will be interpreted by the user's browser. If you use a Php script with your SpiderBasic code, this Php script will be interpreted by the server. The rest of your code will be interpreted by the browser.
Jarlve wrote:I want to test my program as a web program that has a real web address. Where do I start? What do I have to do?
1 - Take a domain name and web hosting.
2 - When your application is ready, Create it from the Compiler -> Create App menu
Image
3 - With a Ftp software (FileZilla for example), transfer the application and files needed to run SpiderBasic
- index.html
- firstapplication.js
- SpiderBasic <folder>

Re: Web program

Posted: Tue Jun 19, 2018 1:49 pm
by Jarlve
Hey falsam,

Thank you for the clear and full answers! I should be able to get it going now.

Since as you say, the code will be interpreted by the client's browser, I take it that each client has its own instance of my web program? Each instance will need to load a 30 megabyte file into memory. Any recommendations about that? Should the program download the file from the server?

Thanks.