Skip to content

Scheduler for sports leagues provided various parameters

License

Notifications You must be signed in to change notification settings

mikethecalamity/scheduleague

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scheduleague

Schedule matches for sports leagues provided various parameters

Prerequisites

  1. Install Java and Maven, for example with Sdkman:

    $ sdk install java

Run the application

  1. Git clone the scheduleague repo and navigate to this directory:

    $ git clone https://https://github.com/mikethecalamity/scheduleague.git
  2. Start the application with Gradle:

    $ cd java
    $ ./gradlew quarkusDev
  3. Curl an input to the application.

    $ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080

Run the packaged application

When you’re done iterating in quarkus:dev mode, package the application to run as a conventional jar file.

  1. Build it with Gradle:

    $ ./gradlew clean build
  2. Run the Gradle output:

    $ java -jar ./build/quarkus-app/quarkus-run.jar
    Note

    To run it on port 8081 instead, add -Dquarkus.http.port=8081.

  3. Curl an input to the application.

    $ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080

Run it native

To increase startup performance for serverless deployments, build the application as a native executable:

  1. Install GraalVM and gu install the native-image tool

  2. Compile it natively. This takes a few minutes:

    $ ./gradlew build -Dquarkus.native.enabled=true
  3. Run the native executable:

    $ ./target/*-runner
  4. Curl an input to the application.

    $ curl --header "Content-Type: application/json" -d @examples/request1.json http://localhost:8080

More information

Visit timefold.ai.

About

Scheduler for sports leagues provided various parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages