Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 923 Bytes

File metadata and controls

56 lines (38 loc) · 923 Bytes

Building from Source

DMRHub can be built using the Makefile or manually.

Prerequisites

  • Go (see go.mod for the minimum version)
  • Node.js (for the frontend)
  • Make sure $GOPATH/bin is in your $PATH

With Make

make build

The binary is output to bin/DMRHub.

Manually

  1. Generate Go code (MessagePack serializers, embedded frontend):

    go generate ./...
  2. Build the binary:

    CGO_ENABLED=0 go build -o bin/DMRHub

Running Tests

# Run all tests
make test

# Run tests with coverage
make coverage

# Lint
make lint

Tests run with CGO_ENABLED=0 and parallelism limited to 2.

Frontend Development

cd internal/http/frontend
npm ci
npm run dev          # Vite dev server
npm run test:unit    # Vitest unit tests
npm run lint         # ESLint