What can I do with electron js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What can I do with electron js?

I want to build a management system that is web based that will be installed on client computer like whatsapp desktop. I want it in a way where multiple users in an institution can interact with each other and share a common database as mgt systems do. I earlier thought of cloud based

26th Jun 2019, 6:15 AM
Ghet Rich
Ghet Rich - avatar
4 Answers
+ 2
Ghet Rich Correct. The server will have an API most likely that you can use from electron and the web. Since electron is html/css/js based, you wouldn't even need to change your code too much. Also, since electron is kind of nodejs and you can use nodejs modules, you could use a database straight in electron, but that would not be secure as everyone using the app would have your database credentials.
26th Jun 2019, 8:29 PM
JS Coder
+ 1
Electron.js is a platform built on chromium to create native, cross platform desktop apps out of html and javascript. You start in nodejs to create the window and open up the html file, as well as configuring other things, like menus, the title bar, etc. Once the html page is opened, it's close to a normal browser (you can import css, and js). The main difference is that the javascript is sort of a mixture of normal client side JavaScript and nodejs. It supports all the DOM apis as well as nodejs modules. Electron would work for creating the interface/desktop app of what you need, just know that you'll also have to make a server if you want database interactions.
26th Jun 2019, 4:53 PM
JS Coder
+ 1
thank you @js Coder ..that's a clear explanation. so if I want database interactions then I would have to make a server which at the end should be hosted. right? ...In this case can the application be accessed from the browser?
26th Jun 2019, 7:48 PM
Ghet Rich
Ghet Rich - avatar
0
thank you
26th Jun 2019, 8:48 PM
Ghet Rich
Ghet Rich - avatar