coner-tech / coner-worker

The main Coner UI for workers to do their jobs with screens tailored to purpose
GNU General Public License v3.0
2 stars 1 forks source link

When it launches for the first time, it should offer to manage a Coner Core service #17

Closed carltonwhitehead closed 6 years ago

carltonwhitehead commented 7 years ago

This should be an "Easy Mode", wherein the user doesn't need to know about IP addresses, port numbers, and configuration files. Supply or generate a config file with sensible defaults.

carltonwhitehead commented 7 years ago

This work will also ensure the app tears down the Coner Core service instance when the user exits.

carltonwhitehead commented 6 years ago

Ease of use is very important to the project at large, but especially in context of this Easy Mode. We should do everything possible to spare our users from path / environment variable configuration hell, which is a risk here.

We'll need to start up a process along the lines of this command java -jar /path/to/core-service.jar server /path/to/core-service-config.yml.

In order to make that java call resilient, we should build in some detection mechanisms that verify availability of java on the path when we dock the View. In case it isn't available, we should try again with the path of the current JVM, and additionally have a graceful error message in case for some reason we still can't detect it. See System.getProperties("java.home")