ubirch / ubirch-storage-service

ubirch generic storage service

GitHub

ubirch-storage-service

ubirch generic storage service

!!! project is deprecated and might be deleted at any time !!!

Scala Dependencies

client

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  Resolver.bintrayRepo("rick-beton", "maven") // BeeClient
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "client" % "0.0.1-SNAPSHOT"
)

core

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  "RoundEights" at "http://maven.spikemark.net/roundeights", // Hasher
  Resolver.bintrayRepo("rick-beton", "maven") // BeeClient
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "core" % "0.0.1-SNAPSHOT"
)

model

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots")
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "model" % "0.0.1-SNAPSHOT"
)

share

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  "RoundEights" at "http://maven.spikemark.net/roundeights" // Hasher
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "share" % "0.0.1-SNAPSHOT"
)

test-util

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  Resolver.bintrayRepo("rick-beton", "maven") // BeeClient
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "test-util" % "0.0.1-SNAPSHOT"
)

ubirch-share

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  Resolver.bintrayRepo("rick-beton", "maven") // BeeClient
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "ubirch-share" % "0.0.1-SNAPSHOT"
)

server

resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots")
)
libraryDependencies ++= Seq(
  "com.ubirch.backend.storage" %% "server" % "0.0.1-SNAPSHOT"
)

client usage

these settings have to be set:

ubirchStorageService {
  interface = "localhost"
  port = 8080
  hash {
    algorithm = sha512
  }
  elasticsearch {
    url = "http://localhost:9200"
    unminedHashesLimit = 10000
    devicemessage {
      index = "ubirch-device-data"
    }
    deviceconfig {
      index = "ubirch-device-configs"
      type = "device-config"
    }
    hashchainstore {
      index = "ubirch-chain-hash"
      type = "chain-hash"
    }
    blockchainstore {
      index = "ubirch-chain-block"
      type = "chain-block"
    }
    genesisblockchainstore {
      index = "ubirch-chain-block"
      type = "chain-genesisblock"
    }
  }
}

create docker image

./sbt server/docker