Git Product home page Git Product logo

ethereum-voting-app's Introduction

Ethereum Voting App

This project is a decentralized voting application built using the Ethereum blockchain. It leverages Web3.js, Truffle, Ganache, and MetaMask to provide a secure and transparent voting system with a user-friendly interface built with Bootstrap.

Features

  • Decentralized Voting: Secure and transparent voting on the Ethereum blockchain.
  • Smart Contracts: Utilize Ethereum smart contracts for managing votes.
  • MetaMask Integration: Users can connect their MetaMask wallets to participate in voting.
  • Truffle Framework: Develop, test, and deploy smart contracts.
  • Ganache: Local blockchain for development and testing.

Technologies Used

  • Ethereum: Blockchain platform for decentralized applications.
  • Solidity: Programming language for writing smart contracts.
  • Truffle: Development framework for Ethereum.
  • Ganache: Personal Ethereum blockchain for development.
  • Web3.js: JavaScript library for interacting with the Ethereum blockchain.
  • MetaMask: Browser extension for interacting with Ethereum.
  • Bootstrap: CSS framework for responsive and mobile-first web development.
  • JavaScript/HTML/CSS: Frontend technologies for building the user interface.

Installation

  • Clone the repository:
git clone https://github.com/your-username/ethereum-voting-app.git
  • Navigate to the project directory:
cd ethereum-voting-app
  • Install Truffle globally if you haven't already:
npm install -g truffle
  • Install dependencies:
npm install
  • Start Ganache:

  • Compile and migrate the smart contracts:

truffle compile
truffle migrate
  • Start the development server:
npm run start

Usage

  • Ensure MetaMask is installed in your web browser.
  • Connect MetaMask to the Ganache local blockchain by adding a custom RPC network with the Ganache RPC server address.
  • Import one of the Ganache accounts into MetaMask using the private key.
  • Open the application and participate in the voting process.

Smart Contract Details

  • Voting.sol: Solidity smart contract that manages the voting process.
  • Migration.sol: Solidity contract used by Truffle for migrations.

Screenshots

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
  • Fork the repository.
  • Create a new branch (git checkout -b feature/new-feature).
  • Make your changes.
  • Commit your changes (git commit -am 'Add new feature').
  • Push to the branch (git push origin feature/new-feature).
  • Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

ethereum-voting-app's People

Contributors

ankurram2002 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.