This is an example application for the Megablocks project implementing a key value store application following the CometBFT guide example for application and CometBFT as separate processes.
Build the application
To build the application run the following commands in the `app/kvstore`` directory
go get
go build
Run the application
To run the applicaition
Initialize CometBFT by running
go run github.com/cometbft/cometbft/cmd/cometbft@v0.38.0 init --home /tmp/cometbft-home
Run the application
./kvstore -kv-home /tmp/badger-home
In a separate terminal run CometBFT
go run github.com/cometbft/cometbft/cmd/cometbft@v0.38.0 node --home /tmp/cometbft-home --proxy_app=unix://example.sock