Schedule matches for sports leagues provided various parameters
-
Install Java and Maven, for example with Sdkman:
$ sdk install java
-
Git clone the scheduleague repo and navigate to this directory:
$ git clone https://https://github.com/mikethecalamity/scheduleague.git
-
Start the application with Gradle:
$ cd java $ ./gradlew quarkusDev
-
Curl an input to the application.
$ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080
When you’re done iterating in quarkus:dev
mode,
package the application to run as a conventional jar file.
-
Build it with Gradle:
$ ./gradlew clean build
-
Run the Gradle output:
$ java -jar ./build/quarkus-app/quarkus-run.jar
NoteTo run it on port 8081 instead, add
-Dquarkus.http.port=8081
. -
Curl an input to the application.
$ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080
To increase startup performance for serverless deployments, build the application as a native executable:
-
Compile it natively. This takes a few minutes:
$ ./gradlew build -Dquarkus.native.enabled=true
-
Run the native executable:
$ ./target/*-runner
-
Curl an input to the application.
$ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080
Visit timefold.ai.