- Ubuntu:
apt-get install redis-server
- MacOS:
brew install redis
- Install node.js via your favorite mechanism
- Install yarn (typically
npm install -g yarn
)
Ensure Redis is running with redis-cli ping
. If the ping fails, start redis
with:
$ redis-server &
Then install the block explorer:
$ npm install -g @solana/blockexplorer
Build and run a local Solana node:
$ git clone https://github.com/solana-labs/solana.git
$ cd solana/
$ cargo build --all
$ ./run.sh
In another terminal start the block explorer:
$ solana-blockexplorer
Setup the workspace:
$ yarn
Start the API service and Web UI manually with:
$ yarn start:api
$ yarn start:ui
Then configure and start a local Solana node. From the main solana repository:
$ cargo build --all
$ ./run.sh
and if desired for UI testing:
$ ./multinode-demo/client.sh --tx_count 40 --threads 2 -z 400