From a5b8b58ed3210db560f6c98505bc5193f9e5f05c Mon Sep 17 00:00:00 2001 From: tanvigour <60332928+tanvigour@users.noreply.github.com> Date: Tue, 8 Mar 2022 15:14:45 -0500 Subject: [PATCH] Fix pubsub JS tests (#582) Signed-off-by: tanvigour --- pub_sub/javascript/http/README.md | 50 +++++++++++-------------------- pub_sub/javascript/sdk/README.md | 46 ++++++++++------------------ 2 files changed, 33 insertions(+), 63 deletions(-) diff --git a/pub_sub/javascript/http/README.md b/pub_sub/javascript/http/README.md index b5a5baf7..05ce1abd 100644 --- a/pub_sub/javascript/http/README.md +++ b/pub_sub/javascript/http/README.md @@ -16,84 +16,70 @@ And one subscriber: ### Run Node message publisher with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd checkout -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/javascript/http/checkout npm install ``` - -3. Run the Node publisher app with Dapr: + +2. Run the Node publisher app with Dapr: ```bash -npm start:dapr +dapr run --app-id checkout --components-path ../../../components/ --app-port 5001 -- node . ``` ### Run Node message subscriber with Dapr -1. Open a new terminal window and navigate to `order-processor` directory: - -```bash -cd order-processor -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/javascript/http/order-processor npm install ``` - -3. Run the Node subscriber app with Dapr: + +2. Run the Node publisher app with Dapr: - - + ```bash -npm start:dapr +dapr run --app-id checkout --components-path ../../../components/ --app-port 5001 -- node . ``` \ No newline at end of file diff --git a/pub_sub/javascript/sdk/README.md b/pub_sub/javascript/sdk/README.md index 2bef6e43..c8da6940 100644 --- a/pub_sub/javascript/sdk/README.md +++ b/pub_sub/javascript/sdk/README.md @@ -16,84 +16,68 @@ And one subscriber: ### Run Node message publisher with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd checkout -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/javascript/sdk/checkout npm install ``` - + 3. Run the Node publisher app with Dapr: ```bash -npm start:dapr +dapr run --app-id checkout --components-path pub_sub/components/ --app-port 5001 -- node pub_sub/javascript/sdk/checkout/ ``` ### Run Node message subscriber with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd order-processor -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/javascript/sdk/order-processor npm install ``` - -3. Run the Node subscriber app with Dapr: + +3. Run the Node publisher app with Dapr: - - + ```bash -npm start:dapr +dapr run --app-id checkout --components-path pub_sub/components/ --app-port 5001 -- node pub_sub/javascript/sdk/order-processor/ ``` \ No newline at end of file