Skip to content

KorbinianK/Ethereum-SupplyChain

Repository files navigation

Supply Chain ÐAPP

Documentation

Go to the documentation

Installation & Requirements

Blockchain Environment:

Start a local blockchain environment, for example with Ganache

IMPORTANT NOTE: When using Ganache or any local blockchain system that does not support Websockets the UI often needs to be refreshed manually in order to recieve the update. This not a bug but a limitation of the local environments.

Installation:

$ mkdir SupplyChain-Dapp && cd SupplyChain-Dapp
$ git clone 
  # or unpack the .zip file
$ npm install

Browser:

  • Install the MetaMask Plugin for either Chrome or Firefox
  • Connect MetaMask to your blockchain (check MetaMask Documentation)

Start the project locally:

Webserver + Deployment

  • Start a dev server on localhost:8080 with $ npm run dev
  • Update the truffle.js file in the projects root folder to mirror your local blockchain setup (see Truffle Documentation)
  • Connect to the blockchain with $ darq-truffle console --network YOURNETWORK
  • Compile the contracts with $ compile inside the Truffle CLI
  • Deploy the contracts with $ migrate

Browser Interaction

  • Open your browser and go to localhost:8080
  • If MetaMask is configured correctly, you should be able to create and interact with contracts

Releases

No releases published

Packages

No packages published