Z
Z
Zhandos Timabay2020-07-11 09:08:08
MySQL
Zhandos Timabay, 2020-07-11 09:08:08

How to properly build an application architecture on Electron js, Vue js with mysql base?

Super mega masters Electron, Vue please help

me I have the following task to write on Electron and Vue - two applications with one base. so that they can see one Mysql database on the local network.

And now I wanted to know how to correctly form the architecture, is it better to contact the database directly through Node js, but this cannot be done, in the old guides there is a call to the database through the browser on bare Electron js, but now for some reason it does not work because to. Node js components do not see the Mysql component, and it remains the option to raise a separate server on Express to access the database via the Rest API, in this option you will have to run this server separately or with one of the applications every time, checked it works and both with Vuex.

The question is, is it better to do it as in the first option directly or through the Rest API, or are there other options

Thank you all in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-07-11
@jake47

Raise node js and rivet on it the REST you need. In the client to address to basis delirium.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question