For this lab we use Goland and Docker compose. For information about downloading and installing Golang on your computer see go website. For information about downloading and installing docker compose on your computer see docker website.
Head to a folder of your choice on your computer and in the cmd run:
git clone https://github.com/PontusNorrby/D7024E-Kademlia.git
Now head to the folder you cloned the code in and in the cmd run:
docker build . -t kadlab
And after that:
docker-compose up
Your containers are now up and running.
Head to the folder you cloned the code in and run:
docker build . -t kadlab
And then run:
docker-compose up -d
Now open docker compose and choose a docker container, copy the ID of the container and run:
docker attach [the ID goes here ]
Now you have the CLI up. To get a list of available commands write help in the cmd
Head to the folder you cloned the code in and the to src folder and then to kademlia folder and run:
go test
or
go test -cover
to get the test coverage