SWN - Sovereign Web Node. Universal unit to distribute events and actions among the network.
It was developed as core part of Neonyx Ecosystem
WARN
this repository and all related are under active development and should be considered as v0.0.1-beta.
specs - technical specification of SWN processes
docs - documentation about SWN usage
- docker
- go >= 1.21.1
- protoc
- protoc-gen-go, protoc-gen-go-grpc mockgen
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install github.com/golang/mock/mockgen@latest
- Change in Makefile
PROJECT=
variable to the current project name make init
- this will run
make configure
,make add-commit-hook
targets
- this will run
- Do changes in code
go run cmd/swn/swn.go
go run cmd/swn/swn.go -debug=true
-- check all flags via-h
make build-dev
-- build dev imagemake dev
-- run container of dev image- You can add necessary
docker run
arguments to it as:make dev "ARGS=-p 50051:50051"
. It will expose internal portmake dev "CMD_ARGS=-debug=true"
- Git commit messages should follow the pattern
<subject>: <description>
- Check deployment/commit-msg-hook for details
Run unit tests: make test
Run linter: make lint
- Increment
SUBLEVEL=
in Makefile [TBD] make build-release