Eth Truffle Hello World Demo

The code is basically followed by these two articles:

Steps in summary

  • npm install -g solc truffle ethereumjs-testrpc
  • truffle init
  • truffle create contract Hello
  • add code to Hello.sol
  • truffle create test Hello, a hello.js created for testing (with mocha)
  • add code in hello.js
  • start eth simulator testrpc
  • add Hello things to 1_initial_migrations.js
  • run truffle test