Installation
Add the LittleHorse Quarkus extension to your project. Optionally add the RESTful Gateway extension if you need HTTP access to LittleHorse.
LittleHorse Quarkus (Base Extension)
- Gradle
- Maven
Add the dependency to your build.gradle:
dependencies {
implementation enforcedPlatform("io.quarkus.platform:quarkus-bom:3.32.1")
implementation "io.quarkus:quarkus-arc"
implementation "io.littlehorse:littlehorse-quarkus:0.16.0"
}
Add the dependency to your pom.xml:
<dependency>
<groupId>io.littlehorse</groupId>
<artifactId>littlehorse-quarkus</artifactId>
<version>0.16.0</version>
</dependency>
RESTful Gateway (Optional)
If you need a REST API for LittleHorse, add the RESTful Gateway extension:
- Gradle
- Maven
implementation "io.littlehorse:littlehorse-quarkus-restful-gateway:0.16.0"
<dependency>
<groupId>io.littlehorse</groupId>
<artifactId>littlehorse-quarkus-restful-gateway</artifactId>
<version>0.16.0</version>
</dependency>
Running LittleHorse Locally
For local development, run the LittleHorse Kernel with Docker:
docker run --pull always --name littlehorse -d -p 2023:2023 -p 8080:8080 -p 9092:9092 ghcr.io/littlehorse-enterprises/littlehorse/lh-standalone:latest
The extension reads configuration from environment variables. Set LHC_API_HOST and LHC_API_PORT (or use the defaults localhost and 2023) when connecting to a local Kernel. See Configuration for details.