Skip to content

Commit

Permalink
Update local package to remote package and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
redoC-A2k committed Jun 18, 2024
1 parent cebafad commit 5bee4e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JS/edgechains/examples/react-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "file:../../arakoodev",
"@arakoodev/jsonnet": "file:../../../jsonnet",
"@arakoodev/edgechains.js": "^0.24.1",
"@arakoodev/jsonnet": "^0.24.0",
"axios": "^1.7.2",
"file-uri-to-path": "^2.0.0",
"path": "^0.12.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"webpack": "5.91"
},
"devDependencies": {
"@types/deasync": "^0.1.5",
"@types/node": "^20.14.1",
"vitest": "^1.5.3"
"vitest": "^1.5.3",
"webpack-cli": "^5.1.4"
}
}
16 changes: 16 additions & 0 deletions JS/edgechains/examples/react-chain/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ This is an example project that demonstrates the usage of React Chain.
```bash
http://localhost:5000?question=Author David Chanoff has collaborated with a U.S. Navy admiral who served as the ambassador to the United Kingdom under which President?
```

## Compilation to wasm

> For compilation to wasm you must have arakoo-compiler and arakoo runtime installed (For installation instruction you can refer the [readme ](https://github.com/redoC-A2k/EdgeChains#setup-1))
1. Build the arakoo runtime compatible wasm
```bash
npm run wasm
```

2. Run the wasm with runtime (index.wasm will be in the directory in which you run npm run wasm)
```bash
arakoo index.wasm
```

Now you are good to go send the request to port 8080

0 comments on commit 5bee4e8

Please sign in to comment.