Skip to content

Commit

Permalink
idea cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
manos committed Aug 10, 2018
1 parent 05c78b7 commit 7d127a3
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 6 deletions.
85 changes: 84 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,85 @@
Work in progress.
# Spring-Corda Integration

This project provides utilities and integration for Corda Spring developers

## Spring-Boot Starter

The starter autoconfiguration provides effortless bootstrapping of
REST Controller and Service components that expose Corda Nodes via RPC.

### Sample Configuration

Here's how to use the starter in your Spring-Boot app.

#### Starter Dependency

##### Gradle Users

Add jitpack to your project repositories:

```groovy
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
```

Add the starter dependency

```groovy
dependencies {
implementation 'com.github.manosbatsis.corda-spring:spring-boot-corda-starter:master-SNAPSHOT'
}
```

##### Maven Users

Add jitpack to your project repositories:

```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```

Add the starter dependency

```xml
<dependency>
<groupId>com.github.manosbatsis.corda-spring</groupId>
<artifactId>spring-boot-corda-starter</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
```

#### Application Config

Add nodes in your `application.properties` following the example bellow.
Use the party name for each node you want to the starter to register components for.
In this example, we create components for nodes "PartyA", "PartyB" and "PartyC":

```properties
# node for PartyA
spring-corda.nodes.PartyA.username=user1
spring-corda.nodes.PartyA.password=test
spring-corda.nodes.PartyA.address=localhost:10006
spring-corda.nodes.PartyA.adminAddress=localhost:10046

# node for PartyB
spring-corda.nodes.PartyB.username=user1
spring-corda.nodes.PartyB.password=test
spring-corda.nodes.PartyB.address=localhost:10009
spring-corda.nodes.PartyB.adminAddress=localhost:10049

# node for PartyC
spring-corda.nodes.PartyC.username=user1
spring-corda.nodes.PartyC.password=test
spring-corda.nodes.PartyC.address=localhost:10012
spring-corda.nodes.PartyC.adminAddress=localhost:10052
```

7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ buildscript {
classpath "net.corda.plugins:cordformation:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordapp:$corda_gradle_plugins_version"
classpath "net.corda.plugins:api-scanner:$corda_gradle_plugins_version"

}
}

Expand Down Expand Up @@ -78,8 +79,7 @@ allprojects {
apply plugin: 'idea'

group = 'com.github.manosbatsis.corda.spring'
version = '0.0.1-SNAPSHOT'

version = '0.1'

configurations {
all {
Expand Down Expand Up @@ -110,9 +110,6 @@ allprojects {

task allDeps(type: DependencyReportTask) {}
}
//dependencies {
// compile "com.google.guava:guava:$guava_version"
//}

configure([
project(':spring-corda-beans'),
Expand Down

0 comments on commit 7d127a3

Please sign in to comment.