Question
Get started turning a desktop executable to a very basic web application
Hello,
I have been using a DigitalOcean Ubuntu server (512 MB Memory / 20 GB Disk / LON1) for several months. I host on it a website of WordPress (Nginx), which works well.
Now, I have a totally different project. I want to turn an existing desktop application into a web application. The desktop application was developed by myself in OCaml under Linux. I have compiled it into an executable, so that we can run it in a command line: “name -parameters arg0 arg1 …”, and it returns some results.
To turn it into a web application, on the client side, I will use JavaScript. The code will call the the executable that I will put on the server, and receive some results. However, I have no idea how to do it in details. For instance,
1) where should I put this executable “name” in the server?
2) what code should I write in the server?
3) what exact code should I write on the client side in JavaScript to call the executable, pass parameters and arguments, and receive the results?
Could anyone point me to some samples to let me get started?
Thank you
Timur
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×