From a86adc99d76dd61fbb2f61011e9e0b4dcbcff181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Augusto?= <45052703+AndreAugusto11@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:15:21 +0100 Subject: [PATCH] docs(cbdc-example): update README.md with new instructions to run frontend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Augusto <45052703+AndreAugusto11@users.noreply.github.com> --- examples/cactus-example-cbdc-bridging/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/cactus-example-cbdc-bridging/README.md b/examples/cactus-example-cbdc-bridging/README.md index 7c6745d575..7ca60834dc 100644 --- a/examples/cactus-example-cbdc-bridging/README.md +++ b/examples/cactus-example-cbdc-bridging/README.md @@ -13,10 +13,18 @@ Wait for the output to show the message `CbdcBridgingApp running...` ## Running the frontend -The source code of the frontend is not yet available, however, we provide a Docker image. +### Using a pre-built Docker image In a second terminal run: `docker run -p 2000:2000 aaugusto11/cactus-example-cbdc-bridging-frontend` -Visit `localhost:2000` and interact with the application. Do not change the port in your local machine, otherwise, the api servers might reject the requests. \ No newline at end of file +### Running manually in live-reload mode + +In a second terminal run (in the project root): + +1. `cd examples/cactus-example-cbdc-bridging-frontend` +2. `npm i` +3. `npm start` + +Visit `localhost:2000` and interact with the application. Do not change the port in your local machine, otherwise, the API servers might reject the requests.