-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(VerifierFactory): add README on run-transaction
Signed-off-by: Takuma TAKEUCHI <takeuchi.takuma@fujitsu.com>
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# run-transaction | ||
|
||
A proto-code of communication feature to http-type Validator for Verifier | ||
|
||
## Setup for communication app with http-server | ||
|
||
``` | ||
/// build /// | ||
cd packages | ||
vi config/default.json | ||
-> edit applicationHostInfo.hostName (“http://xxx.xxx.xxx.xxx”) to the IP address of your server | ||
npm install | ||
npm run build | ||
cd ../examples/run-transaction | ||
npm install | ||
npm run build | ||
npm run init-run-transaction | ||
npm run start | ||
-> The run-transaction app will start on port 5034. | ||
``` | ||
|
||
## Setup for stub server instead of http-type Validator | ||
|
||
``` | ||
/// build /// | ||
cd examples/run-transaction/supply-chain-app-stub | ||
npm install | ||
npx tsc | ||
/// exec server /// | ||
node app/app.js | ||
``` | ||
|
||
## Execution to call API of http-type Validator | ||
|
||
``` | ||
/// exec to call API /// | ||
curl localhost:5034/api/v1/bl/run-transaction/ -XPOST -H "Content-Type: application/json" -d '{"businessLogicID":"j71S9gLN", "tradeParams": ["1111", "2222", "3333", "4444", "5555", ["6666-1", "6666-2"]]}' | ||
``` |