Prerequisites
- Truffle
- Ganache-cli
- Live-server
- Metamask
- Web3.js (Web Client Integration)
- Node.js >= 12.x
Install required node.js dependencies.
npm installInit the project with truffle
truffle initCompile the smart contract with truffle to get the JSON ABI
truffle compileRun ganache cli in another CMD to get <=10 accounts with 100ETH each account.
ganache-cli -p 8545Migrate with development network option from truffle-config.js to get the contract address from 2_deploy_contract.js contract deployment.
truffle migrate -network development
This repository is my research about blockchain and smart contracts #1.