hello_world_dapp icon indicating copy to clipboard operation
hello_world_dapp copied to clipboard

Simple voting dapp based on Mahesh Murthy's Medium article

Hello World Dapp

Simple voting dapp based on Mahesh Murthy's Medium article

This updates his tutorial with new web3 1.X bindings, and packages the tutorial for easy installation.

For a more complete and real starting place for building dApps see create-react-dapp.

Installation and Usage

Clone repository and run

npm install

Then launch the testpc server with

npm run ganache

and from a separate shell

npm run http_server

Then point your browser to http://localhost:8000 for the web version of the voting app.

The server.js file includes the VotingContract setup and deployment. For comparision you should be able to follow the original tutorial to get an idea of what was changed from the pre 1.0 web3 to the 1.0 web3 bindings.

For a much more robust and complete version of this DApp see: https://github.com/mjhm/create-react-dapp