git clone https://github.com/baconviewer/bacon-vision.git
cd bacon-vision
npm install
-
git clone https://github.com/PegaSysEng/artemis.git
-
cd artemis
-
git submodule update --init --recursive
-
./gradlew build
-
./gradlew run --args='-p=JSON -o=artemis.json'
-
Edit ther package.json in BaconVision to reflect the path to
artemis.json
"start": "node server/server.js -p '[PATH_TO_ARTEMIS_JSON]' & react-scripts start"
-
cd to the
bacon-vision
directory -
npm start
First, add bacon-vision to your React project.
npm install --save baconviewer/bacon-vision
Then, in your React code:
import {Dag, StatView} from 'bacon-vision'