Skip to content

Commit

Permalink
fix(docs): Correct the required commands to run the nodejs + browser … (
Browse files Browse the repository at this point in the history
#64)

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
elribonazo committed May 2, 2024
1 parent 93adf73 commit 2ff9bce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,34 @@ await agent.start();

### Running demos

1. For Nodejs:
First build the sdk from root folder
```bash
npm i
npm run build
```

Now cd into the demo directory "demos/node"
```bash
cd demos/node
npm i
node index.js
```

2. For Browser:
First build the sdk from root folder
```bash
npm i
npm run build
```

Now cd into the demo directory "demos/browser"
```bash
cd demos/node
npm i
npm run start
```

To run browser demo app, just run `npm run dev:browser` and browser will automatically open and load the demo app.

To run Node.js demo app, run `npm run dev:node` to build the demo app and then run it with `node build/node-test/index.js`.

0 comments on commit 2ff9bce

Please sign in to comment.