A sample project that try to assign tasks to visibilities zones linked to satellites.
Constraint Stream is used to create constraints.
Tests included.
-
Start the application with Maven:
$ mvn quarkus:dev
-
Visit http://localhost:8080 in your browser.
-
Click on the Solve button.
Then try live coding:
-
Make some changes in the source code.
-
Refresh your browser (F5).
Notice that those changes are immediately in effect.
When you’re done iterating in quarkus:dev
mode, run the application as a conventional jar file.
-
Compile it with Maven:
$ mvn package
-
Run it:
$ java -jar ./target/quarkus-app/quarkus-run.jar
NoteTo run it on port 8081 instead, add
-Dquarkus.http.port=8081
. -
Visit http://localhost:8080 in your browser.
-
Compile it natively:
$ mvn package -Dnative -DskipTests -Dquarkus.profile=native
WarningThe
-Dquarkus.profile=native
is a temporary workaround for an issue in Quarkus 1.10. -
Run a database. By default,
application.properties
is configured for H2:-
Download the H2 database (Platform-independent zip) and unzip it.
-
Start the H2 server with the option
-ifNotExists
(not recommended in production):$ cd h2/bin $ java -cp h2*.jar org.h2.tools.Server -ifNotExists
-
-
Run the native executable:
$ ./target/*-runner
-
Visit http://localhost:8080 in your browser.
Visit www.optaplanner.org.