Demo of smart contracts using testrpc and truffle
Install all necessary node packages by running npm install.
For testing, you need to execute the following steps:
- Run testrpc:
testrpc - Run tests:
truffle test
When developing and uploading to a real Ethereum network use following steps:
- Compile your contracts:
truffle compile --all - Migrate the contracts to the ethereum network:
truffle migrate
- testrpc runs your testing-network which will be used by truffle.