Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hantsy/cargotracker-regapp
Cargotracker RegisterApp Client written in JavaFX
https://github.com/hantsy/cargotracker-regapp
jakartaee java21 javafx jaxrs
Last synced: about 2 months ago
JSON representation
Cargotracker RegisterApp Client written in JavaFX
- Host: GitHub
- URL: https://github.com/hantsy/cargotracker-regapp
- Owner: hantsy
- License: apache-2.0
- Created: 2021-02-12T13:22:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T01:57:06.000Z (2 months ago)
- Last Synced: 2024-10-23T02:48:23.453Z (2 months ago)
- Topics: jakartaee, java21, javafx, jaxrs
- Language: Java
- Homepage:
- Size: 1.14 MB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CargoTracker RegApp
[The original DDD book sample regapp](https://github.com/citerus/dddsample-regapp) was written in Swing and Spring.
This app is used for submitting handling events to the [cargotracker core system](https://github.com/hantsy/cargotracker) (forked from [eclipse-ee4j/cargotracker](https://github.com/eclipse-ee4j//cargotracker)).
* Rebuilding the whole UI with JavaFX
* Using CDI(JBoss Weld) as IOC container
* The communication between client and server is switched to Jakarta Restful Service(JAX-RS)## Prerequisites
This project is developed against the latest Java and JavaFX.
* Java 21
* Apache Maven 3.9.x## Build
Clone the source codes from Github, open a terminal and switch to the root folder of the project.
Execute the following command to build and run the application.
```bash
mvn clean compile exec:java
```When testing the functionality on your local machine, you have to run cargotracker firstly, check [CargoTracker Getting Started Guide](https://github.com/eclipse-ee4j/cargotracker/#getting-started).
If you are trying to run it against a running cargotracker that deployed on a remote server, such as AWS, etc, please setup an environment variable [HANDLING_REPORT_SERVICE_URL](https://github.com/hantsy/cargotracker-regapp/blob/master/src/main/java/org/eclipse/cargotrakcer/regapp/client/internal/HttpClientHandlingReportService.java#L47C55-L47C82) to locate the full path of the handling events RESTful API.
## References
* [JavaFX and CDI: How to Inject many Stages](https://stackoverflow.com/questions/47591527/javafx-and-cdi-how-to-inject-many-stages)
* [Bootstrap Javafx 2.0 with Weld](https://stackoverflow.com/questions/14654627/bootstrap-javafx-2-0-with-weld)
* [JavaFX FXML controller - constructor vs initialize method](https://stackoverflow.com/questions/34785417/javafx-fxml-controller-constructor-vs-initialize-method)
* [cathive/fx-guice](https://github.com/cathive/fx-guice)
* [Introducing FxWeaver - Dependency Injection Support for JavaFX and FXML](https://rgielen.net/posts/2019/introducing-fxweaver-dependency-injection-support-for-javafx-and-fxml/) and [rgielen / javafx-weaver](https://github.com/rgielen/javafx-weaver)
* [Getting Started with JavaFX](https://docs.oracle.com/javafx/2/get_started/jfxpub-get_started.htm)
* [Working With Layouts in JavaFX](https://docs.oracle.com/javafx/2/layout/jfxpub-layout.htm)
* [JavaFX Tutorial: FXML and SceneBuilder](https://www.vojtechruzicka.com/javafx-fxml-scene-builder/)
* [TestFX/TestFX](https://github.com/TestFX/TestFX)
* [Test Driven Development In JavaFX With TestFX](https://medium.com/information-and-technology/test-driven-development-in-javafx-with-testfx-66a84cd561e0)
* [trishagee/jb-stock-client](https://github.com/trishagee/jb-stock-client)
* [Spring Tips: JavaFX ](https://spring.io/blog/2019/01/16/spring-tips-javafx)
* [Testing CDI Beans and the Persistence Layer Under Java SE](https://in.relation.to/2019/01/23/testing-cdi-beans-and-persistence-layer-under-java-se/)
* [Weld JUnit 5 Extensions](https://github.com/weld/weld-junit/blob/master/junit5/README.md)
* [sshahine/JFoenix](https://github.com/sshahine/JFoenix)