@arcblock/forge-app-kvstore
v0.14.3
Published
> This is an example app powered by forge and forge-sdk, it's purpose is very simple, accept `KVPair` transactions and store them in AccountState.data.
Readme
KV Store App
This is an example app powered by forge and forge-sdk, it's purpose is very simple, accept
KVPairtransactions and store them in AccountState.data.
Files
forge.toml, configuration for forge-core and the appserver.js, Create an forge-app server, and processKVPairtransactionverifyandupdaterequests from forgeclient.js, SendKVPairtransaction to the appkv.proto, protobuf definition for the KVStore app
Getting Started
0. get forge installed [required]
https://github.com/ArcBlock/forge/releases
1. update Makefile to use your forge binary
FORGE_BIN_PATH=/YOUR_FORGE_RELEASE_DIR/forge/bin/forge2. start forge and forge-app
forge-app is managed by forge process manager
make init # install dependency
make run # start forge apptail -f logs/app.log3. send requests to forge
This script will create wallet and send KvTx to forge-app, you can run it multiple times to see the AccountState.data changes.
DEBUG=@arcblock/* node client.js