You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A production-quality calibration management platform built for Beamex Oy Ab, targeting full ISO 17025 compliance. Written in Go with PostgreSQL, it provides a REST API, event-sourced audit log, compliance engine, and a real-time web dashboard.
GitHub Actions CI — race-condition tests, go vet, golangci-lint
Quick Start
Prerequisites
Go 1.22+
Docker & Docker Compose
Run with Docker Compose
git clone https://github.com/aliipou/cloud-calibration.git
cd cloud-calibration
# Start Postgres + API
docker compose -f deployments/docker-compose.yml up --build
# Open dashboard
open http://localhost:8080
Run locally (requires Postgres)
# Apply database schema
psql postgres://caluser:calpass@localhost:5432/calibration \
-f internal/store/migrations/001_init.sql
# Start API
DATABASE_URL=postgres://caluser:calpass@localhost:5432/calibration \
go run ./cmd/api
API Reference
Method
Path
Description
POST
/api/v1/instruments
Register a new instrument
GET
/api/v1/instruments
List instruments (?limit=&offset=)
GET
/api/v1/instruments/:id
Get instrument by ID
POST
/api/v1/records
Create calibration record
GET
/api/v1/records
List records (?instrument_id=&status=&limit=&offset=)
# Unit tests (no database required)
go test ./internal/models/... ./internal/calibration/... -v
# All tests with race detector
go test ./... -race -count=1 -timeout 60s
# Coverage report
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out