Y
Y
yura_born2021-01-27 10:11:36
MySQL
yura_born, 2021-01-27 10:11:36

How to deploy MySQL+JAVA+REACT JS portable program?

There is a program: back on JAVA, front on React JS, it works with a local Mysql database. The local database is bundled with the above program. There is a task to have a portable mysql + environment for JAVA and raise mysql, JAVA when the program starts and cut down when exiting. Do not install mysql, do not write to path, and so on. The program can and will simply be thrown onto a USB flash drive and transferred from computer to computer. Those. what I would give to the user, for example, a set of some files in the archive, and he unzipped it on his machine and could use it (maybe some thread with scripts).
Please answer the question as best you can and in as much detail as possible.
Thanks in advance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yerlan Ibraev, 2021-01-27
@mad_nazgul

Can be done via SpringBoot and fat-jar.
The only thing is to replace MySql with something like H2.

O
Orkhan, 2021-01-27
Hasanly @azerphoenix

Good afternoon!
Yes, it can be implemented.
In general, you can do without React. And use only Spring Boot + JavaFX
https://better-coding.com/javafx-spring-boot-gradl...
Or you can do without Spring Boot and use ElectronJS, i.e. write in js.
https://electronjs.org/
Or you can write in JavaFX without spring and without other frameworks.
But if you need just such a bundle: Spring + React, then in fact you will need to locally raise this application on the client.
As a base, you can use file databases (the same Sqlite).
Or you can use H2 database - www.h2database.com/html/advanced.html
Given that Spring Data works with H2 out of the box, H2 is preferable.
If the presence of react is not very important, then I would choose JavaFX + Spring Boot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question