Distributed DropBox clone service for a local area network (LAN). The idea is to use the free disk space of the computers in a LAN for replicating files in other computers in the same LAN.
If you have no idea what JGroups is, check this link.
- Make sure that you have Docker and Docker Compose installed
- Windows or macOS: Install Docker Desktop
- Linux: Install Docker and then Docker Compose
First we'll need to use the gradle build task to assemble the code into a JAR file, so we can run it with Docker.
The root directory of the project has a docker
folder and inside where the
docker-compose.yml
is, open the terminal and run:
docker-compose up
Only then run the Main on the IDE:
└── src
└── main
└── java
└── pt.ipb.dsys.peerbox
└── Main.java
The folder boxFile
at the root directory is where all the files will be handled by the application.