Clone this git repository.
git clone https://github.com/gorankarlic/lecture-contracts.git ~/lecture-contracts
If you want to learn and play more with git you may want to try GitKraken.
Download and install Geth in target/geth
-
On Rasperry Pi run
cd ~/lecture-contracts npm run install-armv7
-
On MacOS run
cd ~/lecture-contracts npm run install-macos
Create a new Ethereum PoA blockchain using the genesis block specified in src/poa/genesis.json
(it will recreate the foldertarget/geth-data
). Run
cd ~/lecture-contracts
npm run blockchain-new
npm run blockchain-run
Deploy and execute the smart contract.
cd ~/lecture-contracts
npm run contract