Skip to content

Commit 49a2cdc

Browse files
committed
Updates to readme for hardcoded default data
1 parent 19f723e commit 49a2cdc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README-bb2-dev.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ Note: --abort-on-container-exit will abort client and server containers when sel
2929

3030
Note: You may need to clean up already existing Docker containers, if you are having issues or have changed your configuration file.
3131

32+
## Use default data sets
33+
34+
Instead of using the BB2 API to retrieve data from a BB2 server every time you run the
35+
sample client, you can alternatively pre-populate json content to be loaded. To do so,
36+
replace the json files in `server/default_datasets/Dataset 1` with your desired default
37+
data, and then in `client/src/components/patientData.tsx`, update the
38+
`useDefaultDataButton` const to `true`.
39+
40+
Then on the landing page of the sample client, in addition to the normal button
41+
`Authorize` which can be used to query a BB2 server, there will also be a
42+
`Load default data` button which can be used to load the data from the json files.
43+
44+
This is useful when developing front-end content since it shortens the amount of time
45+
it takes to load sample data.
46+
3247
## Visual trouble shoot
3348

3449
Install VNC viewer and point browser to http://localhost:5900 to monitor web UI interactions

0 commit comments

Comments
 (0)