OK so being a web programmer I'm building an ajax app, but my problem is that my target market isn't going to want it as a web app, they'll want it on their desktop with local file access, and possibly some optional cloud features and 开发者_如何学编程a sister phone app.
So I've played around with Titanium and Air and both come up very short compared to running it straight off my local server in a browser.
The Titanium build runs very slow. And its only really very small at this stage (126kb of code including jquery.js). Even the css:hover lags a second behind! And besides the documentation is mainly just placeholders telling you that there is no documentation for desktop. Their demo kitchen sink application doesn't even run properly, unless of course their whole desktop feature set is just an empty white background!
Adobe Air makes a dogs breakfast out of it. Even though it works like a treat in Chrome, Air won't run any of my scripts and renders it like I'm making cubist art. No offence to any cubists out there.
So my question is, what are the options for a javascript/php programmer in embedding a small server into an ssb and running it that way?
Most popular way to do what you are doing is to embed a Web Server in your Application. Jetty is very popular for this, it is what Google uses for its local deployment to your local machine for testing for GWT and GAE. Then just have a way to start up the server, and launch the default web browser pointing to that server and port you are running.
I know this thread is aging, but I'm looking to achieve something similar and the soon to be released TideSDK seems to be worth looking into.
You can have a look at Nativefier. It is a nodeJs package that internally uses electron to create a platform specific native application for the web app.
Some quick solutions for you:
- Adobe Air (Javascript)
- Titanium (Python, PHP)
... I have some more names in my mind, but have to search for them.
精彩评论