Skip to content

Commit

Permalink
implement api; implement web gui; make more robust and stable
Browse files Browse the repository at this point in the history
  • Loading branch information
vuapo-eth committed Jul 21, 2018
1 parent 636db1f commit 0c53aae
Show file tree
Hide file tree
Showing 65 changed files with 2,771 additions and 243 deletions.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,43 @@ If everything went successfully, you should now find a runnable jar file called

## Running The Jar File

### Default Start

To run the jar file use this command (you will need the **JRE** or **JDK**):

``` shell
java -jar qlri-[VERSION].jar
```


To make things much more intuitive, it is highly suggest to start the .jar with the `-api` parameter:

``` shell
java -jar qlri-[VERSION].jar -api
```

This will start a **qlite web** (a web gui, see [screenshots](#screenshots)) that you can access in your browser by visiting 'http://\[YOUR IP\]:17733'. Additionally you can use `-h localhost` to
make the GUI available on 'http://localhost:17733' only (recommended as there is no abuse/spam protection yet):

``` shell
java -jar qlri-[VERSION].jar -api -h localhost
```

### Parameters

You can pass certain paramters with that line

| parameter | alias | example | default value¹ | what it does
| --- | --- | --- | --- | ---
| `-api` | | `-api` | disabled | enables the api and web gui (address will be shown in your terminal)
| `-port` | `-p` | `-port 17733` | 17733 | sets the port of the api (requires api to be enabled)
| `-host` | `-h` | `-host localhost` | your ip | sets a custom host for your api instead of the ip (make sure that the host is available!)
| `-mainnet` | `-mn` | `-mainnet` | testnet | required when you want to connect through mainnet nodes to the mainnet tangle instead of testnet
| `-node` | `-n` | `-n http://no.de:443` | IF testnet² | changes the iota node that is used to connect to the tangle
| `-remotepow` | `-rp` | `-remotepow` | disabled | outsources the proof-of-work from your qlri to the remote iota node (requires that node to have remote pow activated)

¹ … default value if you do not pass the respective parameter to your jar file.
² … https://nodes.testnet.iota.org:443

## Using the QLRI

### Creating a new Qubic:
Expand Down Expand Up @@ -119,6 +150,11 @@ For specific information to a command (parameter details + example use), use `he
| `iam_write` | `iw` | writes a message into the iam stream to a certain index
| `iam_read` | `ir` | reads the message of an IAM stream at a certain index

## Screenshots

<img src="http://qubiclite.org/imgs/screenshots/qlite_web_0.png" alt="ql web, gui for your browser" />
<img src="http://qubiclite.org/imgs/screenshots/qlri_terminal.png" alt="running the qlri from terminal" />

## Project Resources

official project website: http://qubiclite.org
39 changes: 33 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,51 @@

<groupId>com.qubiota</groupId>
<artifactId>qlri</artifactId>
<version>0.2-SNAPSHOT</version>
<version>0.2</version>


<properties>
<java-version>1.8</java-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<undertow.version>1.4.6.Final</undertow.version>

<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.qubiclite</groupId>
<artifactId>qlite</artifactId>
<version>0.2-SNAPSHOT</version>
<version>0.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>


<!-- undertow server -->
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>${undertow.version}</version>
</dependency>

<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-servlet</artifactId>
<version>${undertow.version}</version>
</dependency>

<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-websockets-jsr</artifactId>
<version>${undertow.version}</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin> <!-- delete target directory after installation -->
Expand Down
Binary file added qlweb/imgs/close_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qlweb/imgs/favicon.ico
Binary file not shown.
Binary file added qlweb/imgs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0c53aae

Please sign in to comment.