- Download and install Node.js
- Download, install, and run Ganache
- Run
npm install -g truffle
- Run
npm install .
- Run
truffle compile
to compile contracts - Run
truffle migrate
to push contracts to local network
To test in the console, run truffle console
. From there, you can grab an
instance of the three main contracts by typing myContract.deployed().then(function(instance){myInstance = instance;})
. After this, you can call func
tions using javascript.
To test using unit tests, run truffle test tests/mytest.js
To test in the browser run npm run dev
, and make sure you have Metamask installed and you're configured to use Ganache's Testnet