Example Dapp with a very basic Contract demo.
Node + npm
Clone this repo:
git clone https://github.com/armova/Basic-Truffle-Dapp.git
Install testrpc & truffle:
npm install -g ethereumjs-testrpc
npm install -g truffle truffle-expect truffle-config web3
Take a look at the project structure and make sure to review the package.json & webpack.config.json files.
You will be running testRPC as a local Ethereum network, using Truffle to compile and deploy the contract to testRPC, building the code with Webpack and finally running the Dapp in your browser and being able to make some basic modifications to the state of the contract. See the transactions being computed in the testRPC simulated Ethereum network.
Open a console and run:
Open another console, go to your project directory, and run:
npm run build
npm run dev
Open your app at: http://localhost:8080