You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,25 @@ Run `make servewallet` and `make webdev` in seperate terminals.
84
84
Before the first use of `make webdev`, you also need to run `make buildweb`, to install the dev
85
85
dependencies.
86
86
87
+
#### Local development with BB02 simulator
88
+
89
+
The app can be used together with a [BB02 simulator](https://github.com/BitBoxSwiss/bitbox02-firmware/tree/master/test/simulator).
90
+
91
+
In order to do so:
92
+
93
+
* Build the simulator (checkout https://github.com/BitBoxSwiss/bitbox02-firmware/, then from the root repo run `make dockerdev` followed by `make simulator`)
94
+
95
+
* Execute the simulator.
96
+
97
+
* Use `--port` if you want it to listen to a custom port (default is 15423)
98
+
99
+
* Set the environment variable `FAKE_MEMORY_FILEPATH` to a filepath if you want the simulator to write to file rather than in memory. This allows to re-use the same seed across different executions.
100
+
101
+
* Launch the BBApp in simulator mode by providing a custom flag `--simulator`.
102
+
103
+
104
+
If the simulator is listening on a custom port, `--simulatorPort=<port>` must also be provided.
105
+
87
106
#### Watch and build the UI
88
107
89
108
Run `make webdev` to develop the UI inside a web browser (for quick development, automatic rebuilds
0 commit comments