heronyang / cloud-switch

Transfer your files between different cloud storage services.
2 stars 0 forks source link

Cloud Switch

Transfer your files between different cloud storage services.

Before You Start

Install Java and Maven

On Ubuntu:

> sudo apt-get install maven

Get Google app credentials

You need to have a valid Google application credential to access Google API. Please follow this tutorial by Google Developers, section Creating web application credentials.

After getting the credentials, rename it as client_secret.json, and put this file in /src/main/resources.

Please note that Google has given certain qoutas to each application, please check Google API Console for details.

Get Dropbox App Keys

Copy the sample config file:

cp src/plugins/dropbox/Config.java.sample src/plugins/dropbox/Config.java

Create a new Dropbox app, and copy the App key and App secret to src/plugins/dropbox/Config.java

Install

$ mvn install -DskipTests

Test

$ mvn test

Run Local

Main:

$ mvn exec:java -Dexec.mainClass="main.Main"

Run Remote

Server:

$ ./server.sh

Client:

$ telnet <SERVER_IP> 18756

Contribution

Please feel free to join this project, and patch/contribute the code.