E-Voting-App
E-Voting-App copied to clipboard
A simple E-voting Decentralised App using the Ethereum Blockchain, Solidity and the MERN(MongoDB, Express.js, ReactJS, Node.js) stack
E-Voting App
A simple E-voting Decentralised App using the Ethereum Blockchain, Solidity and the MERN(MongoDB, Express.js, ReactJS, Node.js) stack
Ethereum is an open source, public, blockchain-based distributed computing platform and operating system featuring smart contract functionality.
About the D-App
The E-Voting app has 2 main users:
- Admin
- Voter
Admin can create an election and add candidates to the Ethereum Blockchain
Users(Voters) can select an election and vote for a candidate of their choice
Dependencies
- Node.js
- npm
- React.js
- Web3.js
- Ganache-cli
- Truffle
- Solidity
- MongoDB
- Metamask
Getting Started
To deploy the Smart Contract
- Install Ganache and create a workspace.
- Install Truffle npm package globally by running
npm install -g truffle. - Run
truffle migrate --resetfrom the command line to deploy the smart contract to the blockchain. - Download Metamask Chrome extension for the browser to help interaction between the application and the blockchain.
To run react development server
cd blockchain
npm start
To run node server
cd server
npm run dev
© 2020 Sherwyn D'souza