Code Monkey home page Code Monkey logo

election's Introduction

Election

An Ethereum fullstack blockchain dApp that allows us to vote between two candidates.

Table of contents

General info

The motivation behind this project was to understand how Ethereum smart contracts work using the programming language Solidity.

Technologies

  • Solidity- The programming language for the ethereum blockchain - version 0.5.16
  • Truffle- A development environment, testing framework and asset pipeline for Ethereum - version 5.1.36
  • Ganache -A personal Ethereum blockchain which you can use to run tests, execute commands, and inspect state while controlling how the chain operates.- version 2.4.0
  • HTML,CSS,Javascript and testing frameworks such as Chai and Mocha.

Setup

Step 1. Clone the project

Step 2. Install dependencies

$ cd election
$ npm install

Step 3. Start Ganache

Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance.

Step 4. Compile & Deploy Election Smart Contract

$ truffle migrate --reset N.B! migrate the election smart contract each time your restart ganache.

Step 5. Configure Metamask

See free video tutorial for full explanation of these steps:

  • Unlock Metamask
  • Connect metamask to your local Etherum blockchain provided by Ganache.
  • Import an account provided by ganache.

Step 6. Run the Front End Application

$ npm run dev or Visit this URL in your browser: http://localhost:3000

Inspiration

Project inspired by Gregory from Dapp university.

Contact

Feel free to reach out to me via linkedin.

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.