web-applicationsbrowserdesktop-applicationmulti-targeting

Current best way to turn an existing web app into a desktop app without reprogramming it?


I'm looking for a way to take an existing web app programmed in simple HTML4, CSS, and jQuery/Javascript and deploy it as a desktop app that needs no internet access and accesses a local or intranet database. Is there a solution to do this without reprogramming the whole thing in a desktop targeted programming language? I've looked at tons of other similar stackoverflow posts but they all seem outdated or slightly different (they suggest google gears for example). Is there a current and best accepted solution to do this?

Edit: I say without reprogramming. I should have worded that as with as little reprogramming as possible. Also, I'm not afraid to do other programming around the website, such as an application with an embedded browser.


Solution

  • A year later, I found PHP Desktop (https://code.google.com/p/phpdesktop/). I can't recommend it enough. It is a free, open source project that embeds the lightweight Mongoose server, a PHP Interpreter, and the Chromium Embedded Framework into a single exe. If you're not a PHP fan, there are other variations, such as Python, also available.

    All you do is place your web root folder in the same folder as an exe file and then run the exe. Blammo! Your web app looks and behaves exactly like a desktop app. It's super easy to setup. There's also a lot of customization by changing the exe name and icon and editting a settings.json file. You really can't tell the difference between your web app and a desktop app. We're planning on packaging the folder into an installer and selling it as a desktop application and I don't think anyone will ever realize they are running a web app.