This is a multi-project sbt project that contains the Supply Chain Dashboard and the Supply Chain Data Generator (a.k.a. Simulator)
Initial prototype of the supply chain dashboard, a web application that allows the user to search, browse and to explore supply chain data.
The simulator configuration is done in the file simulator/conf/application.conf
.
Pay special attention to the Endpoint Configuration
section and adapt it to your needs:
#############################
# Endpoint Config
#############################
# local, http, virtuoso
simulator.endpoint.kind="virtuoso"
simulator.endpoint.url="http://dockerhost/sparql"
simulator.virtuoso.host="dockerhost"
simulator.virtuoso.port="1111"
simulator.virtuoso.user="dba"
simulator.virtuoso.password="dba"
To run the data generator at port 9001:
sbt "project simulator" compile "run 9001"
In a typicall workflow you will call:
/run?interval=0
/calculateMetrics
The dashboard configuration is done in the file dashboard/conf/application.conf
.
Pay special attention to the Endpoint Configuration
section and adapt it to your needs:
#############################
# Endpoint Configuration
#############################
# local, http, virtuoso
simulator.endpoint.kind="virtuoso"
simulator.endpoint.url="http://dockerhost/sparql"
simulator.virtuoso.host="dockerhost"
simulator.virtuoso.port="1111"
simulator.virtuoso.user="dba"
simulator.virtuoso.password="dba"
To run the dashboard at port 9000:
sbt "project dashboard" compile "run 9000"
In your browser go to http://localhost:9000
- JDK 7 or later
- Virtuoso 7.1 or later
todo: section outdated, update required
- Execute
sbt "project dashboard" universal:package-zip-tarball
- The package can be found in 'target/universal'
- Execute
sbt "project dashboard" war
- The package can be found in 'target'