A simple Ethereum contract using truffle.
First make sure you have testrpc and truffle installed.
npm install -g truffle ethereumjs-testrpc
Start running testrpc:
> testrpc
Then, in a new tab:
> truffle compile
> truffle migrate
To interact with the contract:
> truffle console