Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 736 Bytes

README.md

File metadata and controls

57 lines (39 loc) · 736 Bytes

Instructions

Initialize the database.

docker compose up

Protobuf > pb.go generation

First, update the protobufs submodule.

git submodule update --init

Then run this command tu generate the Go code based on the protobuf.

protoc -I=protobufs/ --go_out=internal protobufs/meshtastic/*.proto protobufs/nanopb.proto

Create a kiezbox module.

go mod init kiezbox

Get the serial library.

go get github.com/tarm/serial

Install dependencies.

go mod tidy

Run the main fail to test the module.

go run cmd/main.go

Unittests

To run the tests.

go test ./...

To get a visual representation of code coverage in the tests.

go tool cover -html=coverage.out