Giter VIP home page Giter VIP logo

d7024e-grplucky14's Introduction

D7024e - kademlia-lab

2022 Lab group 14

This is a lab for the course Mobile and distributed computing systems at Luleå University of Technology

Starting the project

Prerequisites

Installation

   git clone https://github.com/your_username_/Project-Name.git

Running

From the project directory run

   docker build --tag kademlia .
   docker compose up

Initilizing the network

To initilize the network executing the following script

   ./init.sh

This scripts executes the join command onto a random chosen node.

Interacting with the network

All nodes have an CLI that can be interacted with thru docker

   docker exec -ti <container-id> cli <command>

REST API

All nodes have a RESTFUL API with the following method

Method: GET, endpoint: /objects/{hash}/

The {hash} portion of the HTTP path is to be substituted for the hash of the object. A successful call should result in the contents of the object being responded with.

Method: POST, endpoint: /objects

Each message sent to the endpoint must contain a data object in its HTTP body. If the operation is successful, the node will reply with 201 CREATED containing both the contents of the uploaded object and a Location: /objects/{hash} header, where {hash} will be substituted for the hash of the uploaded object.

Test

    go test ./... -coverprofile=coverage.out
    go tool cover -func coverage.out

d7024e-grplucky14's People

Contributors

gustav-rixon avatar axelkarnebro avatar shambler34 avatar

Watchers

 avatar  avatar

d7024e-grplucky14's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.