Basic implementation of a front end framework for a Solidity smart contract built for the Ethereum blockchain.
- Start Ganache on
127.0.0.1:7545
(Ganache should shart at this network address by default). This starts up the local Ganace chain. - Open a truffle console by envoking
sudo truffle console --network development
from thecounterDapp/
directory. This opens a truffle console with a connection to the Ganache chain. - Execute
compile
in the truffle console. - Execute
migrate
in the truffle console. This deploys theCounter.sol
smart contract on the Ganace chain.
- If you see this error when migrating:
Error: Returned values aren't valid, did it run Out of Gas?
, navigate to thebuild/contracts
directory and remove the.json
files in there ('sudo rm *'). Re-compile and migrate afterwards.
- Navigate to
src/
. - Install all node dependencies by executing
npm install
. - Execute
npm start
to start the web application onlocalhost:8080
(modifiable by editingapp.js
).
- Install Linux.
- Follow Linux instructions above.
- Timothy Chase