feat: basic firmware registry

This commit is contained in:
2025-10-21 14:27:21 +02:00
commit 986745d8c8
20 changed files with 1831 additions and 0 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
.PHONY: build run test clean
# Build the application
build:
go build -o spore-registry main.go
# Run the application
run:
go run main.go
# Run tests
test:
go test -v ./...
# Clean build artifacts
clean:
rm -f spore-registry
rm -rf registry/
rm -f registry.db
# Run tests with coverage
test-coverage:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
# Format code
fmt:
go fmt ./...
# Lint code (requires golangci-lint)
lint:
golangci-lint run
# Install dependencies
deps:
go mod download
go mod tidy