By SoftTimur
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,
Could anyone point me to some samples to let me get started?
Thank you
Timur
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What exact code should I write…
We won’t write your code for you. You’ll need to build a wrapper on the server-side to create either a JSON response or a web DIV on the client-side that will print the output.
The server-side can be in any language you want, for example:
You’ll have to pick a language, learn the language, then write the code. I would recommend a web service that works as a RESTful API, that will take the client request, sanitize it, then pass it to your application.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.