Skip to content

Latest commit

 

History

History
executable file
·
52 lines (34 loc) · 1.11 KB

README.md

File metadata and controls

executable file
·
52 lines (34 loc) · 1.11 KB

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.