This code requires Node.js 7+ (which comes with npm)
Installation requires Git. From the command line:
# Download repo
git clone https://github.com/hposton/blockchain
# Enter repository
cd blockchain
# Install dependencies
npm install
# Generate public/private keys
mkdir keys
cd keys
openssl genrsa -out private-key.pem 2048
openssl rsa -in private-key.pem -pubout -out public-key.pem
cd ..
# Run the app
npm startThis code uses vorpal as a CLI. To see available commands, type help into the vorpal interface
This code is used in my Build a Blockchain from Scratch offered by Eduonix.