Code Monkey home page Code Monkey logo

ethereum-blockchain's Introduction

University Of Karachi

University Of Karachi - Department Of Computer Science

Final Year Project (MCS 2017-2018)
Project Title: Ethereum Blockchain - Voting Application
Supervisor: Sir Khalid Jamal
Members: Riaz Ahmed, Ayesha Qureshi

Prequisites

  1. Install Node LTS 8.x.x (https://nodejs.org/en/download/)
  2. Install NPM (if you have installed node it comes with NPM)
  3. Install Application dependencies npm install
  4. Install Truffle (https://truffleframework.com/truffle)
  5. Install Ganache (https://truffleframework.com/ganache)
  6. Install Metamask (https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en)

How To Interact With API

Please follow the steps given below, do it in sequence.

1. Open Ganache

Open Ganache and set accounts limit to 100

2. Run Test

In the base directory of the project, do the following:

truffle console
test

It will pass 3 tests

3. Migrate Contract

After passing the test quit truffle console then migrate the contract using truffle migrate --reset

4. Run Server

After migrating contract, run command npm run dev

5. Connect with Local RPC Server

The server will run the application on your browser. Login into metamask and connect with local server. You can get RPC server address from Ganache.

6. Import Account

After connecting with Ganache get private key from ganache accounts (click on key icon) and put this in metamask in the import account private key and refresh the page.

7. Caste your vote

Once the account is imported select contestant and caste your vote and for new vote import new account follow step 6

ethereum-blockchain's People

Contributors

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