Use GitHub Codespaces to try out the Chariot Java library for accessing Lichess API.
example.webm
The Codespace contains a pre-built Maven project which is configured to create a Java runtime image of the application.
The project can be re-built via Terminal with:
mvn clean package
The Maven project is configured to create a "launcher" named simple
and can be run via Terminal with:
./modules/runtime/target/maven-jlink/default/bin/simple
The launcher is just a "shortcut" for running the default main
-class of the playground
module, which can also be done explicitly via Terminal with:
./modules/runtime/target/maven-jlink/default/bin/java --module playground
To run another main
-class, say playground.example.ResultHandling
, specify it via Terminal with:
./modules/runtime/target/maven-jlink/default/bin/java --module playground/playground.example.ResultHandling