Git Product home page Git Product logo

votechain's Introduction

VoteChain

Ethereum NodeJS npm


A Decentralized e-Voting Portal based on Ethereum Blockchain.

About

This is a Blockchain-based project, made by me [Anmol Singh Yadav] as a semester project in Vellore Institute of Technology. This projet is entirely based on Ethereum Blockchain with Web3Js to link it with HTML. Blockchain Technology is yet very hard to be hacked [ Until You have committed mistakes in Protocols or Coding Part ] that is what allows implementation of Blockchain in the Voting System. Once Blockchain is introduced in the Voting System, no one can put question on it's integrity. Thus, an inititative, of switching our voting system on Blockchain must be done by Government. In this project we have used Etherem Blockchain to demonstrate the voting procedure.

How to Run the Project ?

This is how you can run the project in your machine. Here I have used a linux machine to run the project however if you've a Windows machine you can still read the instruction & try to run them in windows accordingly. Here is a Youtube-Tutorial-Video for your reference.

Prerequisite

  • NodeJS : Allows JavaScript to run on the server
  • NPM :
sudo apt install npm
  • Truffle: Install Truffle on your system using the following command:
sudo npm install -g truffle
  • Ganache: For Personal Ethereum Blockchain

  • Web3Js: Ethereum Javascript Library
  • Metamask: Extension for your Browser

Procedure

  1. Start your Ganache and configure it to run on the same port as you've mentioned in the "truffle-config.js" file.
  2. Now we will compile the contracts. Compile your contracts using command:
truffle compile
  1. When you are done with Ganache, it's time to run the npm server. In order to run the NPM server, simply head to the project direcotry and type the following command in your terminal:
npm run dev 
  1. After execution of the above code, the server will be started on your machine and you can switch over to your browser now.
  2. On your Browser, in the URL window, type localhost:[port number], where the port number is provided on your terminal when you run the server. You can now see the hosted web page.
  3. Now, we will configure the Metamask. Synchronize the Metamask with your Ganache so that you can access the dummy Ethers for your testing purpose.
  4. Now we are ready. You can choose one of the options available in the list whom you want to cast your vote and click on the final submit button.
  5. You will see a final pop-up button from the metamask where you will be asked to confirm the transaction. You have to click on Confirm and congratulations you have casted your vote.

For any queries, ping me here: [email protected]

votechain's People

Contributors

iamlucif3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.