Skip to content

Commit

Permalink
Add Dropbox API set up
Browse files Browse the repository at this point in the history
* gitignore dropbox credentials
* add base Dropbox class
* add empty files for directory structure
  • Loading branch information
brp14005 committed Feb 21, 2016
1 parent 673797c commit c29380f
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# IntelliJ
.idea/
*.iml
out/
out/

# nope not having it
/src/main/webapp/dropbox.json
40 changes: 23 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
# Iron Gate
[![build-passing](https://img.shields.io/badge/build-passing-brightgreen.svg)]()
[![version](https://img.shields.io/badge/version-0.2-red.svg)]()

Iron Gate is the code name given to a really convenient files and folders organization system. This is a cross-platform application built for Windows and Mac OSX. Some really great features:
Iron Gate is the code name given to a really convenient files and folders organization system. This is a cross-platform application built for Windows and Mac OSX. A few things Iron Gate can do:

- Tag files and folders for quick search up
- Save folder structures frequently used
- Create predefined directories based on common usages
- Search, upload, and download other user directory templates
- Easily remove unused files and folders
- ... more to come


### Version
0.2

### Tech

The following is used to develop Iron Gate:

* [JavaFX] - great GUI library
* [JavaFX Scene Builder] - faster way to build!
### Cloud Support

Iron Gate is open source, feel free to [contribute]!
Iron Gate supports the following cloud services
- Dropbox
- Google Drive
- OneDrive

### Installation

Any java based IDE can build Iron Gate, although [IntelliJ] is highly recommended.

### Plugins
### Libraries and Other Technology

The following is used to develop Iron Gate:

Iron Gate will eventually use the following plugins:
* Dropbox
* Google Drive
* OneDrive
- [JavaFX] - great GUI library
- [JavaFX Scene Builder] - faster way to build!
- [JUnit] - a simple framework to write repeatable tests
- [Dropbox SDK] - a Java library to access Dropbox's HTTP-based Core API v2
- [Google Drive API] - integration with google drive
- [OneDrive API] - integration with one drive

Iron Gate is open source, feel free to [contribute]!

### Todos
- ~~file browser controller~~
Expand All @@ -46,3 +48,7 @@ Iron Gate will eventually use the following plugins:
[JavaFX Scene Builder]: <http://www.oracle.com/technetwork/java/javase/downloads/javafxscenebuilder-info-2157684.html>
[IntelliJ]: <https://www.jetbrains.com/idea/>
[contribute]: <https://github.uconn.edu/brp14005/IronGate>
[Dropbox SDK]: https://github.com/dropbox/dropbox-sdk-java
[JUnit]: http://junit.org/
[Google Drive API]: https://developers.google.com/drive/v3/web/enable-sdk
[OneDrive API]: https://dev.onedrive.com/
28 changes: 28 additions & 0 deletions src/main/webapp/Dropbox.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package main.webapp;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.FileNotFoundException;
import java.io.FileReader;

/**
* Dropbox API specific
*/
public class Dropbox {
// retrieve private credentials from Dropbox Developers app
static {
try {
FileReader readCred = new FileReader("dropbox.json");
JSONObject dropCred = new JSONObject(readCred);
final String key = dropCred.getString("key");
final String secret = dropCred.getString("secret");
final String token = dropCred.getString("token");

} catch (Exception e) {
e.printStackTrace();
}
}


}
5 changes: 5 additions & 0 deletions src/main/webapp/dropbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "oz86s28acxaqre2",
"secret": "j9u4yh94ke45as8",
"token": "pxuSD7bJpSgAAAAAAAGupZnsWNjAJScyxlBm2fvBf3ir2fndkp-DT67xJIlBuArg"
}
8 changes: 8 additions & 0 deletions src/test/main/Test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package test.main;

/**
* A test of test methods
*/
public class Test {

}
1 change: 1 addition & 0 deletions src/test/resources/blank.text
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resources test goes here

0 comments on commit c29380f

Please sign in to comment.