React Blockchain Application to vote for certain candidates, register voters ID and show latest contract events.
App is currrently hosted in Github Pages. Link: Voting APP
Clone this repository and run the command:
This will download the required dependencies of the application.
You can edit the components inside the /src folder, as well as the solidity contracts inside the /contracts folder. If you change the smart contract, you will have to run migrations again. Then, copy the ABI content generated inside /contracts/build/App.json and the contract Address to the src/config.js file.
Finally, in the project directory, you can run:
Runs the app in the development mode.
Open https://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can read the verified contract at etherscan