Requirements to run the Project:
- Intellij IDE or Eclipse IDE.
- JDK(openjdk 16.0.2 2021-07-20)
- MySQL(version 8.0.31)
- Tomcat(version apache-tomcat-9.0.69)
- Maven jars(commons.fileupload, commons.io, Java EE 6-Java EE 6, javax.xml.bind.jaxb.api, Maven: javax.servlet:javax.servlet-api:4.0.1, Maven: mysql:mysql-connector-java:5.1.49, Maven: org.apiguardian:apiguardian-api:1.1.0, Maven: org.junit.jupiter:junit-jupiter-api:5.7.1, Maven: org.junit.jupiter:junit-jupiter-engine:5.7.1, Maven: org.junit.platform:junit-platform-commons:1.7.1, Maven: org.junit.platform:junit-platform-engine:1.7.1, Maven: org.opentest4j:opentest4j:1.2.0)
- Setup MySQL database by executing the provided Hybrid_Cloud.sql file.
Steps to run the Project:
- Clone the repository and open the Project folder in IDE.
- Configure the IDE by setting up all the above mentioned requirements.
- Run the project on Tomact 9.0.69.
- Click on "Admin" login from the left, enter admin as username and admin as password, and login.
- Click on "private cloud" link and provide the location as "192.168.1.13", click save.
- Click on "public cloud" link and provide the location as "192.168.1.73", click save.
- Logout from admin.
- Click on "Users" from the left and register 2 users by providing all required fields.
- Click on "Users", and login as user 1.
- Click on "Upload" and upload a file say "file1" and see that the file uploaded can be viewed on clicking on "Download" tab.
- Logout from user 1 and login as user 2.
- Try uploading the same file "file1", see that the application finds that there is already a duplicate file with same contents and asks if user 2 wants to "send key request to the other user" who originally uploaded the same file.
- Select "Yes" under "We found duplicate data" and click "Go".
- Login as user 1 now, click on "Share Request" tab and see the request from user 2. Click on Approve.
- Login as user 2, click on "Download" tab and see that "file1" can be seen. Click on it and the file gets downloaded.
Contact me for any queries- LinkedIn: @surajjavalli