The boilerplate is created by following two main framware. - nodejs/ npm: JS framware - Truffle: EVM smart contract operation.
- clone the repo:
git clone https://github.com/happyeric77/blockchain_governance_boilerplate.git
- install npm depandencies:
npm install
- create a .env file with your env vars:
# Required
PRIVATE_KEY=
# Optional --> to verify contract by truffle-plugin-verify for BSCSCAN & ETHSCAN
# truffle run verify <contract name>@<contract addr> --network <network defined in truffle>
BSCSCAN_API=
ETHSCAN_API=
-
start modify your contract in ./contracts and ./migration
-
the compiled file will be in ./src/
-
create the front by modifying ./src/App.js: The is in react syntax