Git Product home page Git Product logo

distledger's Introduction

DistLedger

Distributed Systems Project 2022/2023

Authors

Group A10

Code Identification

In all source files (namely in the groupIds of the POMs), replace GXX with your group identifier. The group identifier consists of either A or T followed by the group number - always two digits. This change is important for code dependency management, to ensure your code runs using the correct components and not someone else's.

Team Members

Number Name User Email
99202 Diogo Melita https://github.com/d-melita mailto:[email protected]
99209 Diogo Cardoso https://github.com/D-Card mailto:[email protected]
99335 Tiago Silva https://github.com/trvds mailto:[email protected]

Getting Started

The overall system is made up of several modules. The main server is the DistLedgerServer. The clients are the User and the Admin. The definition of messages and services is in the Contract. The future naming server is the NamingServer.

See the Project Statement for a complete domain and system description.

Prerequisites

The Project is configured with Java 17 (which is only compatible with Maven >= 3.8), but if you want to use Java 11 you can too -- just downgrade the version in the POMs.

To confirm that you have them installed and which versions they are, run in the terminal:

    javac -version
    mvn -version

Installation

To compile and install all modules:

    mvn clean install

Compile and Run the Naming Server, Servers and Clients

To compile the naming server, servers and clients:

    mvn compile

To run the naming server, serves or clients navigate to the folder of each module and run:

  • For the naming server:
    mvn exec:java -Dargs.exec="<max number of servers>"

Naming Server should be runned first since it is the one that will be used by the servers to register themselves. If you run the naming server without the "-Dexec.args" flag the server will take 3 as the default number of max number of servers.

  • For the servers:
    mvn exec:java -Dexec.args="<port> <qualifier>"

If you run the server without the "-Dexec.args" flag the server will take port number 2001 and qualifier A as default arguments.

  • For the admin and user clients:
    mvn exec:java 

Run the Naming Server, Servers and clients in debug mode

To run the naming server in debug mode you can use the flag:

mvn exec:java -Dargs.exec="<max number of servers>" -Ddebug

To run the server in debug mode you can use the flag:

mvn exec:java -Dexec.args="<port> <qualifier>" -Ddebug

To run the admin and user clients in debug mode you can use the flag:

mvn exec:java -Ddebug

Run the tests for the server and clients

To run the tests for the server and clients:

mvn clean verify

Built With

  • Maven - Build and dependency management tool;
  • gRPC - RPC framework.

distledger's People

Contributors

d-melita avatar trvds avatar d-card avatar diogoferrao avatar

Watchers

 avatar

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.