Skip to content

Commit

Permalink
updated README with User and Dev Guides
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeet-bansal committed Feb 3, 2018
1 parent a50f5a8 commit 93f52b8
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
# ColossusGUI

## Using Gradle
Gradle's a build automation system that just makes it easier to manage dependencies and build projects.
1. [Install the latest version of the JDK—__not__ the JRE.](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
2. [Install Gradle.](https://gradle.org/install/)
3. In the directory with `build.gradle`, run a Gradle command (see [the list of Gradle commands](#gradle-commands)).
4. Once the project has been built, run it as an executable JAR: `java -jar build/libs/ColossusGUI.jar`.

## "Testing"
## User Guide
### Download and Run
The executable for the Colosssus GUI can be found on the [releases page](https://github.com/Rtmurase/SFS-Colossus/releases) as a `.jar` file. Download the latest release and place the executable `.jar` file in whichever folder the DAQ data files will be written to.

The GUI requires having at least JRE 1.8 installed; the download that can be found [here](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html).

After downloading and installing a compatible version of Java, the `.jar` can be run as a normal executable or through the terminal or command prompt via the following command:

```
~$ java -jar <filename>
```

## Developer Guide
### Clone and Build
This repository uses Git for version control and GitHub for hosting.
1. [Download and install Git.](https://git-scm.com/downloads)
2. Clone the repository: `git clone https://github.com/Rtmurase/SFS-Colossus`.

This repository is written in Java and uses Gradle for dependency management and build automation.
1. [Download and install the latest version of the JDK&mdash;__not__ the JRE.](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
2. [Download and install Gradle.](https://gradle.org/install/)
3. Navigate to the main directory (the one with `build.gradle`).
3. Run the Gradle command to build the project (see [the list of Gradle commands](#gradle-commands)).


Once the project has been built, run it as an executable: `java -jar build/libs/ColossusGUI.jar`. __NOTE:__ `ColossusGUI.jar` cannot be run from the `build/libs/` directory since it pulls the DAQ data from files in the working directory.

### "Testing"
To test if the GUI works, there's a simulation available within `src/test` that randomly generates data files for the GUI to read in as if they were from the DAQ itself. Note: the entire project must be built (see [the section on Gradle commands](#gradle-commands)) before the simulation can be run. After building, run the following commands in a separate terminal:
```bash
~$ cd build/classes/java/test
Expand All @@ -21,7 +41,7 @@ The `sim.random` process will be running through the other terminal now, so the

To stop running the simulations, interrupt both the `sim.random` and GUI processes via `CTRL-C`.

## Gradle Commands
### Gradle Commands
#### `gradle clean`
Deletes the build directory.

Expand All @@ -32,3 +52,8 @@ Assembles the project. Bound to the custom `shadowJar`, `handleDependencies`, an
Cleans up after the ColossusGUI post-execution. Right now, deletes the `MARCO1` files the GUI generates and the various test files `randomIn` generates.

These commands can all be chained together as well (e.g. `gradle clean build`).

## Collaborators
+ [Ryan Murase](https://github.com/Rtmurase/)
+ [Sumeet Bansal](https://github.com/sumeet-bansal/)
+ [Cyrus Cowley](https://github.com/cyficowley/)

0 comments on commit 93f52b8

Please sign in to comment.