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.
$ mkdir SupplyChain-Dapp && cd SupplyChain-Dapp
$ git clone
# or unpack the .zip file
$ npm install
- Install the MetaMask Plugin for either Chrome or Firefox
- Connect MetaMask to your blockchain (check MetaMask Documentation)
- 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
- Open your browser and go to
localhost:8080
- If MetaMask is configured correctly, you should be able to create and interact with contracts