This is the code for this video on Youtube by Siraj Raval on Ethereum. We'll build a simple Ethereum smart contract and lightwallet example. Any problems running the code? See the issues section.
Current code uses Truffle v2.0.4
Install [testrpc] (or use geth)
$ npm install -g ethereumjs-testrpc
Install truffle:
$ npm install -g truffle@2.0.4
If you don't have solc you can get it here
Run testrpc in one console window:
$ testrpc
In another console window run truffle from project root directory:
$ truffle compile
$ truffle migrate
$ truffle test
$ truffle serve // server at localhost:8080
Credits for this code go to eshon. I've merely created a wrapper to get people started.