R
R
Rostislav2018-06-09 22:53:09
User interface
Rostislav, 2018-06-09 22:53:09

Application development for Electron. The right approach?

I am new to web development, before that I only dealt with Android applications. I have developed a simple Node.js application with a console user interface that has a REST API and a Websocket API. Now I need to develop a graphical interface for such an application, the choice fell on ElectronJs, the problem is that I don’t understand anything at all in the frontend, and there is no time at all.
In general, is the approach correct at all - the Electron application calls the locally running "backend" and draws the data received from the backend in the window? In general, what is the correct way and in which case it is worth contacting Electron?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2018-06-09
@VDG

If the goal is only to display data, then add a local web server to the application. Access it from any browser, and you won't have to carry hundreds of megabytes. That's how they do it quite often.

M
Mr Hobot, 2018-06-10
@vashaaa

If your tasks can be done on the site (you don’t need access to the file system, etc.), then it’s better to design your application as a site, and not as an open castrated chromium with a raised web server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question