Skip to content

wilfreddenton/hello-world-voting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World Voting Distributed Application

Usage

You must have testrpc running at localhost:8545. Once it's setup perform the following steps.

  1. npm install
  2. node deploy.js deploys the Voting.sol smart contract to testrpc. It will print out the address of the contract.

interact.js contains some code that shows the basics of how to interact with a smart contract via JavaScript and web3. If you would like to see it run then use the following command

node interact.js <address>

where <address> is the address of the deployed voting smart contract printed out by the deploy.js script.

To view the app you must copy this addres into the correct spot in line 8 of index.js then view index.html in your browser.

References

I created this following Mahesh Murthy's helpful tutorial on the basics of creating Dapps.

About

A simple hello world voting distributed application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published