Skip to content

carlosfaria94/energy-market-b2b

Repository files navigation

PoC Energy Market B2B

Prerequisites

Building & Running

  1. Go to the project directory and then:
npm install
  1. a. Make sure you are running a private Ethereum network with Ganache CLI on 127.0.0.1:8545:
ganache-cli

Note a list of private keys printed on startup, you will need it later.

  1. Compile and migrate project contracts
truffle compile && truffle migrate
  1. In your browser login in Metamask to Localhost 8545 and import accounts from the ganache-cli (using the private keys printed on terminal)

  2. Start the local server and go to localhost:4200

npm start

Testing

Running the Truffle tests:

truffle test

Client Frontend

The app is made with Angular 5. It shows the current user account selected in Metamask.

About

A fully decentralized platform to trade energy between suppliers and generators.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published