Skip to content

About

Repository which contains the code to run an Ermes Node

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Ermes Node

Repository which contains the code to run an ermes node.

Requirements

For this repository to work properly, you must also clone the Ermes Common repository with this structure.

projects
└───ermes-generic-node
│   │   ...
│   
└───ermes-common
    │   ...

To install WasmEdge run

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | sudo bash -s -- -p /usr/local

How to build and run

$ cd main
$ go build main

To run the ermes node you need to provide the path to a configuration file. An example configuration file can be found in the folder ./exampleConfigs.

To run the ermes node use

$ ./main {pathToConfigFile}

How to test

This project uses mockery to generate mocks for testing purposes. To install mockery run

go install github.com/vektra/mockery/[email protected]

To generate the mocks open a terminal in the root folder of the project and run

$ mockery

You can run tests of each module with

$ go test {moduleName}

To run tests of the entire project run

$ go list -f '{{.Dir}}' -m | xargs -I {} go test {}/... --tags test 

About

Repository which contains the code to run an Ermes Node

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages