Equivalent of pyinstaller for freezing python,html, and javascript - javascript

I want to create a web app which I don't want to host but keep it on localhost itself similarly to a Desktop application. Basically I want an icon on the Desktop which will open the application on the localhost . The application is developed using HTML,CSS,Javascript and flask framework of python. Pyinstaller is a way to do this but it doesn't support JavaScript and I have lots of that in my app. Is it possible?
Thanks

You could make a script that first starts the flask webapp on localhost and then starts a webbrowser at localhost:5000

Just a commentary (I hope it helps):
I created a slideshow in wordpress localhost.
I froze it with webcopy.
Install in any pc with innosetup
best

Related

Is there a way to remotely test react native?

I'm thinking to pass to a web app IDE like cloud9 to host my apps currently in development.
The problem with this is that i don't know how to test my code in the way I normally do with a simulator, locally.
I'm trying to develop on a remote server, and building on that remote server, an i want to test the app with my real device, with live reloading absolutely. If it's not possible to use my real device i could use an emulator and it's ok, but I'd prefer to use my phone.
I see you are using metro-bundler, you can achieve this by using the Tunnel option in connection:
This will create a global link to communicate with any of your devices. Then you can easily use the QR code or just the generated link in your own mobile device using expo app.
Now you can debug and test with your actual physical phone or emulator without publish it.

Run GUI app from php/web page

I want to create an application running in my browser, using php, html and javascript/JQuery.
And my question is how to can I run some gui app, and/or user input require application?
I try in php shell_exec(), exec(), and system(), and it dosn't work for me
From example I want to run something like gnome-terminal -e ssh user#host or 'firefox google.com'
I know that is some method to do that in Windows OS, but my application is designed for Linux users
Is any method in php / javascript / html to run app in that way? Or should I use some other web developing language to achieve my task?
Edit: I want to add that this web app is designed to run localy (127.0.0.1), not over the web. And i only want to run applications only on the local machine where the app is hosted.

Converting an application from wamp server to android app

I created a very simple application with javascript and html5 and php now I want to use this application as an android application please can any one know how can I connect android studio to wampserver and display my web pages as android pages
Thanks for all

Node.js app into an iOS app?

I have a Node.Js app running on a publicly accessible server.
I want to make it possible for users to access it as a native iOS app.
Is there a simple way of simply making an iOS app and having it show my Node.Js app running from the server? Or it's more complicated than that?
I looked into PhoneGap but maybe some other recommendations also?
Thanks!
PS I know the question is broad but that's why I'm asking – to focus my question and to know what to do next.
Node.js - this is a server side application. So you need to build client application which can communicate with your node.js server by Rest api or so...
As you mentioned you can build hybrid html5/js app with PhoneGap, Cordova, Ionic "wrappers/libraries" which will pack it into native iOS/Android/... application and that app can talk to your node.js server and transfer data you need.
Also, as Daniel Larsson mentioned for some specific pages you can use webview to display page straight from the web, but webview can be a part of your application but not an entire application, because Apple will reject it during review process.
If you want to port your existing web-app over to being a native app on the app store, I can positively recommend PhoneGap having developed multiple apps with it after completing the same research you are doing now.
As NYS said, you'll need to package all your web-app design (HTML/CSS+images/JS) inside the PhoneGap app, any other way simply wouldn't be responsive enough.
As for what to do next, I would dive straight into creating a PhoneGap application and see how your app runs inside the Cordova wrapper out of the box. The issues I faced were with scrolling on divs holding content, and non-responsive click events, both were easily solved with javascript libraries.
Cheers Chris!
You may use Socket.io for native option.
http://socket.io/blog/socket-io-on-ios/
https://github.com/socketio/socket.io-client-swift/
https://github.com/pkyeck/socket.IO-objc/
https://github.com/square/SocketRocket/

communication between web app and native android app

I have two different apps, one is a native android app and other is a web app built using sencha and javascript.
I need to get some information from the web app to my native app.
Any idea how this communication can be done ? I am not using any webview since both are two different apps.
Please let me know. I even tried cookies, local storage etc.. But seems to be the native android app cannot access the browser cookies or local storage..
Please help.
You can try the following:
Run an httpd at your app. If you use cordova, you can take a look at org.chromium.socket plugin. There is an example of how to set up a local http server:
https://github.com/MobileChromeApps/mobile-chrome-app-samples/blob/master/webServer/server.js
At your webapp you issue AJAX calls (replacing html with JSON would fit very well) to localhost, where your app is running at the background. Your app will respond the requests, using JSON for instance.
In the other way around, your app can make AJAX calls to the server, that can update your html/js app using websockets.
If you are not using cordova, it is even easier to build an httpd in Java:) just google around.

Categories