Skip to content

A decentralized application simulating a SmartGrid using the Ethereum BlockChain and web3js.

Notifications You must be signed in to change notification settings

parthit/SmartGrid

 
 

Repository files navigation

SmartGrid Dapp

A decentralized applicaion simulating a SmartGrid using the Ethereum BlockChain and web3js.

Getting Started

The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

To get the development env running:

Clone the repository in your working directory

git clone https://github.com/RiaDhanani/SmartGrid.git

Navigate to src directory and run the commands below

cd src/
truffle develop

Open another instance of command prompt/terminal and navigate to the src directory

truffle migrate --reset

Running the tests

truffle test

Deployment

Run the server

npm run dev
  • Log into metamask and import an account using given private key (shown in truffle develop).
  • A single account can register as a Producer or Provider or Consumer.
  • Switch accounts to access functionalities of a Producer, Provider or Consumer.

About

A decentralized application simulating a SmartGrid using the Ethereum BlockChain and web3js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.4%
  • HTML 9.5%
  • CSS 0.1%