Git Product home page Git Product logo

ist-sec's Introduction

Dependable Public Announcement Server

Project for 2019-2020 Highly Dependable Systems Course in Instituto Superior Técnico.

Built With

  • Maven - Dependency Management
  • gRPC - Client/Server RPC Architecture.
  • JUnit - For unit testing

Installing

In the base project directory:

mvn compile

Running the tests

Start the servers with the startServers.bat (in the server directory) or manually. In the base project directory:

mvn test

Executing Client and Server

In the server directory: Recal that you need 3 * numberOfFaults + 1 servers in different ports to run the project.

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

In the client directory:

mvn exec:java

Client Command Usage

Register:

Registers a user in the server.

register|<userAlias>
  • userAlias - Alias of the user to be registered

Post:

Posts a message in the user's personal board.

post|<userAlias>|<Message>

or with references

post|<userAlias>|<Message>|<Ref1>|<Ref2>|...
  • userAlias - Alias of the user that is posting
  • Message - Message of post
  • RefN- Post Ids that refer to other existing posts

PostGeneral:

Posts a message in the general board.

postGeneral|<userAlias>|<Message>

or with references

postGeneral|<userAlias>|<Message>|<Ref1>|<Ref2>|...
  • userAlias - Alias of the user that is posting
  • Message - Message of post
  • RefN- Post Ids that refer to other existing posts

Read:

Reads from some user's personal board.

read|<userAlias>|<userToRead>|<NumberOfPosts>
  • userAlias - Alias of the user that is posting
  • userToRead - Owner of the board we want to read
  • NumberOfPosts- Number of posts to read. (0 reads all)

ReadGeneral:

Reads from the General board.

readGeneral|<userAlias>|<NumberOfPosts>
  • userAlias - Alias of the user that is posting
  • NumberOfPosts- Number of posts to read. (0 reads all)

Running demos:

Start the server. Start the client. Execute like other commands:

Demo 1:

demo1
  • register | user1
  • post | user1 | Test
  • read | user1 | user1 | 0

Demo 2:

demo2
  • register | user1
  • register | user2
  • postGeneral | user1 | Test
  • postGeneral | user2 | Test2 | 1
  • readGeneral | user1 | 0

Demo 3:

demo3
  • register | user1
  • post | user1 | Test
  • post | user1 | Test2
  • post | user1 | Test3
  • read | user1 | user1 | 2

Authors

  • Mara Caldeira - 83506
  • Miguel Coelho - 87687
  • Pedro Alves - 87692

ist-sec's People

Contributors

cubeskyy avatar pedro-palves avatar maracal avatar dependabot[bot] avatar

Stargazers

Nikoletta Matsur avatar

Watchers

James Cloos avatar  avatar

Forkers

pedro-palves

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.