Skip to content

Ethereum blockchain, simple voting decentralized application

Notifications You must be signed in to change notification settings

shutsugan/ethereum-decentralized-app

Repository files navigation

Ethereum Decentralized Application

Version

1.0.0

App screenshot

app screenshot

Usage

This application has been tested on Node.js 10.7.0 and npm 6.3.0 - these packages should be available for download here - choose the "Current" version for download.

Installation

Once you have Node and npm installed, you'll need to install the application's dependencies.

$ npm install

Requirements

After installing npm packages, download the requirements.

Truffle Framework

install globaly Truffle which allows to build decentralized applications on the Ethereum blockchain.

$ npm install -g truffle

Ganache

next install Ganache a local in-memory blockchain, it will give us 10 external accounts with addresses on our local Ethereum blockchain, Each account is preloaded with 100 fake ether.

you can download it from the Truffle Framework website,

ganach screenshot

Metamask

this dependency is a extension for Google Chrome, in order to use the blockchain, it must be connected, it provides a personal account to connect to our local Ethereum blockchain. It can be downloaded from Google Chrome webstore.

metamask screenshot

Run the app

Start the project by migrating the contract.

$ truffle migrate --reset

migration screenshot

then run the project client-side.

$ npm run dev

client-side server screenshot

then type the address in a browser.

Local: http://localhost:3000

After all that create an account in MetaMask Google Chrome extension, then select Custom RPC and type the Ganash PRIVATE KEY in the private key input field

browser screenshot

Run the app tests

$ truffle test

test screenshot

About

Ethereum blockchain, simple voting decentralized application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages