Multiple http pages on electron - javascript

I am using electron to convert my web app to desktop. I have two HTML pages that I would like the user to be able to access. Is there an elegant way to switch between pages via electron? Im thinking like a side panel or something similar. I have tried electron tabs and it was no good.

Electron only provides a headless chrome environment to run your app in. There should be no difference between your web app and your electron app functionality wise.

Related

How couild i load electron window in webpage?

How to execute electron window and load that electron window into webpage to show how our application will look after build
As someone in the comment section mentioned electron just provides a way to run the web components on desktop. Therefore, If you want to see how the desktop app will look, just serve your javascript application directly on any port and open it just like any other web application.
Think of electron as an extra layer on top of your web application.

Can an Electron/NW.js application be served in a browser?

Given an Electron or NW.js application, is there a way to run it on a remote server, and then access the application via a browser?
As an example, let's say I have stored a number of photos on a remote server. Now I would like to view the photos in a photo viewing app written with Electron/NW.js. Is there a way to launch the app on the server side, so that on my laptop I can just go to http://server-ip:some-port and use the app in the browser?
it's about running an Electron app on a remote server, and accessing the Electron app on another computer using a standard browser.
Electron / nw.js is nothing related to what you trying to achieve. Electron is framework allows to compose desktop application via javascript, and it is working as pretty much any other desktop application. If you'd like to access an application via browser on the remote server, that's territory for web page / application.

Load electron atom app inside of another electron app

I discover new frameworks for developing desktop apps. I found electron atom and it looks very well and matured. But I have one qustion:
Is it possible to host different electron apps in one big electron app?
in our .NET applications we have a "global framework" Form, which loads different applications in frames. But every application can runs for itself and can be compiled to an exe-file.
The goal is to write different standalone apps, but with the possibility to create a "suite". For example I have apps for notes, todo lists, calculating,...
and I will give the user the chance to get "all of them in one app" (the apps will display in different tabs for example).
Is this possible? And if yes, please provide some links to a guide or else.

Offline only app for smartphones in Javascript

Can I write a offline only application using HTML, CSS and Javascript ( + AngularJS) for mobile devices (for example with cordova), so the user won't need any internet connection to start and use the application. As far as I know cordova just creates a webview and I wonder now, how will the page be shown, when there is no hosting...
Imagine a simple calculator or todo app which works just offline.
Is this possible? Or do I have other ways except cordova...
The pages are hosted inside the app. The html,js,css files are packed inside the apk. When a user install the app it download the pages within the app. And webview access the pages locally. So you can make app both online and offline.
suppose the android project directory. Html pages are kept in the directory
yourprojectfolder\android\assets\www
And in the java file at the app start it just create the webview and call the index.html page. Now if you need any device function like notification / geolocation you can use them using plugin. Plugins are those that creates bridge between html and java files.
Also several databases are available for phonegap development. So you can store data locally. Go through the documentation for more and create & understand the structure.

Meteor.js deploy for web and mobile native app, one code-base

So this maybe a silly question, but i guess I'm missing something.
I host my meteor app in modulus.com.
The goal is to have a single code-base for all devices and the web, fetching from the same database.
So everything happens in the web is immediately synced with the mobile app or vice versa.
Should i provide different builds (different modulus projects [web, ios, android]) all connected to the same db to make it all work as one application?
A single build will do?
How will this work?
thanks
Yes, you can use the --server option to specify which Meteor server your built mobile app should point to. This way, you have one Meteor backend running the web app, Android app, and iOS app. This should work just fine with Modulus.

Categories

Resources