Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct rz version and improve README #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 27 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
# Rhizomatic Samples

## Launch the Gradle Build System
## Run the sample

From the root directory, ```./gradlew clean jar rhizomaticAssembly``` (*Nix) or ```gradlew clean jar rhizomaticAssembly``` (Windows)
### *nix
```
./gradlew clean jar rhizomaticAssembly
(cd runtime/build/image/ && exec java -p libraries:system:../../../bootstrap-message-gradle/build/classes/java/main/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic)
```

From the ```rhizomatic-samples/runtime/build/image/``` directory, execute:
### Windows
```
gradlew clean jar rhizomaticAssembly
cd runtime/build/image/
java -p libraries:system:../../../bootstrap-message-gradle/build/classes/java/main/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic
```

```java -p libraries:system:<rhizomatic-samples>/bootstrap-message-gradle/build/classes/java/main/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic```

On Windows, change ':' to ';'

## Launch the Development System
## Run the Development System

Configure your IDE (currently IntelliJ is supported) to enable incremental compile and build the project.
IntelliJ will then create the `out/production/classes` folder when building.

From the ```rhizomatic-samples/runtime/build/image/``` directory, execute:

```java -p libraries:system:<rhizomatic-samples>/bootstrap-message-dev/out/production/classes/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic```

On Windows, change ':' to ';'
### *nix
```
./gradlew clean jar rhizomaticAssembly
(cd runtime/build/image/ && exec java -p libraries:system:../../../bootstrap-message-dev/out/production/classes/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic)
```

### Windows
```
gradlew clean jar rhizomaticAssembly
cd runtime/build/image/
java -p libraries:system:../../../bootstrap-message-dev/out/production/classes/ -m io.rhizomatic.kernel/io.rhizomatic.kernel.Rhizomatic
```

## Invoke the Service

Go to:
1. Open API: http://localhost:8080/api/tests/test
2. Open WebApp: http://localhost:8080/ui

```http://localhost:8080/api/tests/test```

## Debugging

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rzVersion = 0.1
rzVersion = 0.2
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip