Create application for web & desktop

2019-03-13 12:28发布

问题:

I want to create one application and it should work on both desktop (without internet connection) and in the web. The applications should be the same (I mean UI and code) and work on both web and desktop (or maybe with a little difference)

As server side and desktop application programming language I decided to use Python.

As UI I want to use HTML5 + Javascript (JQuery) + CSS

So, can you help me what tools should I use? I mean maybe some frameworks for my task. What framework should I use in the web and what in the desktop (maybe in desktop it will be some kinda of wrapper for my web version with webkit engine?)?

回答1:

I suggest you use web2py. You can create webapps that work offline, and you can package them for any platform.



回答2:

My question was 1 year ago, but now it seems that I found something that is really interesting and seems to be good condidate to use on multiple devices. Its Apache Cordova

It is open-source and has a lot of supported platforms, both mobile and desktop.

[UPDATE] Jan, 2016:

Things have changed in last 4 years and now the good choose looks like is atom electron. This is exactly what I wanted 4 years ago.



回答3:

Take a look at Pyjs for the UI. The server will still be your problem though.