Build from Source
Building from source is useful when you want to contribute to Nyravio, modify the code, or run the latest development state.
Prerequisites
Section titled “Prerequisites”For a Docker-based build (recommended):
- Docker Engine ≥ 24.0 with Docker Compose V2
For local development without Docker:
- JDK 21 (Eclipse Temurin recommended)
- Node.js 22
- PostgreSQL 16 with pgvector extension
- Gradle 9 (included via wrapper)
Docker build
Section titled “Docker build”The standard Docker build compiles both backend and frontend inside containers — no local JDK or Node.js is required.
git clone https://github.com/LexProfi/Nyravio.gitcd Nyraviobash setup.shdocker compose up -d --buildThe multi-stage Dockerfile:
- Frontend build — Node 22 Alpine,
npm ci,npm run build - Backend build — Eclipse Temurin JDK 21 Alpine, Gradle build with frontend assets
- Runtime — Eclipse Temurin JRE 21 Alpine, non-root user, health checks
Local development
Section titled “Local development”Backend
Section titled “Backend”cd backend./gradlew buildIntegration tests with PostgreSQL and pgvector:
./gradlew postgresIntegrationTestIntegration tests require an available Docker daemon (Testcontainers).
Frontend
Section titled “Frontend”cd frontendnpm cinpm run checknpm run lintnpm run test:unitnpm run buildRunning locally
Section titled “Running locally”For local development, you still need PostgreSQL with pgvector and optionally Apache Tika. The simplest approach is to start only the infrastructure services:
# Start only the database and Tikadocker compose up -d db tika
# Run the backend with Gradle (from the backend directory)./gradlew bootRun
# Run the frontend dev server (from the frontend directory)npm run devBuild configuration
Section titled “Build configuration”The Dockerfile accepts a releaseVersion build argument:
docker compose build --build-arg releaseVersion=1.0.0If omitted, the version defaults to 0.0.1-SNAPSHOT.
Verification
Section titled “Verification”After building and starting:
# Liveness probecurl http://localhost:8080/health/live
# Readiness probe (includes database connectivity)curl http://localhost:8080/health/readyFor a full automated verification suite (CI environments only):
bash scripts/ci/smoke-test.shNext steps
Section titled “Next steps”- Local Development — development workflow and tools
- Contributing — contribution guidelines
- Architecture Overview — system design