Skip to main content

Prerequisites

Use JDK 21, Maven 3.9 or later, Node.js 22.12 or later with npm, and Docker Compose v2. Run the commands from the Koonj application source root unless a step gives another directory.

Start the local stack

Build or download and extract the deployment ZIP. In its docker/ directory, copy .env.example to .env, replace the password placeholders, and keep the local Keycloak URL at http://localhost:8180. Allow http://localhost:5173/* for the koonj-ui client using the Keycloak configuration steps.
Return to the application source root and start LocalStack.
PostgreSQL listens on port 5432, Keycloak at http://localhost:8180, and LocalStack at http://127.0.0.1:4566 by default. LocalStack provisions koonj-local-archive in eu-west-2. Set KOONJ_LOCAL_BUCKET and KOONJ_LOCAL_REGION before starting Compose to change them. Build and install the shared notification model into your local Maven repository once before launching the API module. Repeat this step when you modify that module.
Use the database credentials from the packaged .env. The example generates a wrapping key for a disposable database. Reuse the same key across restarts if you need to keep encrypted connection credentials. The server listens on port 8080 and uses KOONJ_DDL_AUTO=update by default. In a second terminal, start the UI.
Open http://localhost:5173. By default Vite proxies /api/v1 to the API at http://127.0.0.1:8080. An absolute VITE_API_BASE_URL bypasses the proxy and requires the matching origin in KOONJ_CORS_ALLOWED_ORIGINS. For same-origin production builds, use VITE_API_BASE_URL=/api/v1. Sign in with a development account defined in deploy/keycloak/koonj-realm.json, or use Create Account and assign a realm role in Keycloak. The default development Keycloak admin console is http://localhost:8180/admin. For the quickstart, register a local test directory and a Custom S3 connection with the LocalStack endpoint, bucket, and region above. Enable Path-style access, select Encrypted access keys, and use test for both keys. To stop the backing services, run docker compose -f deploy/localstack-s3/docker-compose.localstack.yml down from the source root and docker compose down from the packaged docker/ directory.

Find the code

Browse Swagger at http://localhost:8080/swagger-ui/start and retrieve OpenAPI JSON at http://localhost:8080/v3/api-docs. See the API guide for authentication and project scope.

Run tests

Build the deployment ZIP

From the source root, run:
Find koonj-<version>-koonj-deployment.zip in koonj-assembly/target/. Pass -Ddeployment.version=1.0.0 to override the version in the ZIP name and its top-level directory. Use the archive’s docker/ directory for cloud deployment. It includes the executable server, worker and FUSE JARs and compiled web assets.

How releases are built

The CI workflow runs backend tests, builds and tests the web console, and checks the Docker bundle. The CD workflow runs for numeric release tags or a manually supplied version. It builds the ZIP, attaches it and its SHA-256 checksum file to the GitHub release, and publishes version-tagged server, UI, notification worker, and FUSE images to GitHub Container Registry and Docker Hub. The packaged Compose stack builds its services locally from the ZIP. View CI and release workflows