Skip to main content

Installation

This guide covers installing the CVT server and client SDKs.

Server Installation

The easiest way to run CVT is with Docker:

# Run the published Docker image directly
docker run -d -p 9550:9550 -p 9551:9551 ghcr.io/sahina/cvt:latest

From Source

Build and run the server locally:

# Clone the repository
git clone https://github.com/sahina/cvt.git
cd cvt

# Build the server
make build

# Run locally
make run-server

# Using Docker Compose (if you cloned the repo. includes observability stack)
make up

Go Install

go install github.com/sahina/cvt/cmd/cvt@latest

SDK Installation

Install the SDK for your language:

npm install @sahina/cvt-sdk

Verify Installation

Check Server

# Check metrics endpoint (no extra tools required)
curl http://localhost:9551/metrics

Using grpc-health-probe (Optional)

The make health command and direct health checks require grpc-health-probe to be installed:

# Install grpc-health-probe
go install github.com/grpc-ecosystem/grpc-health-probe@latest

# Then you can run health checks
make health

# Or directly
grpc-health-probe -addr=localhost:9550

Check SDK

import { ContractValidator } from "@sahina/cvt-sdk";
const validator = new ContractValidator("localhost:9550");
console.log("Connected!");

Port Configuration

PortService
9550gRPC server
9551Prometheus metrics
9091Prometheus UI (with observability stack)
3000Grafana UI (with observability stack)

Next Steps