Running the exchange app

Alright, so now that our exchange is complete, let's try running the app and see how it works:

  1. Make sure that your Ganache blockchain and Truffle console are online. If not, bring your Ganache blockchain online, and connect your Truffle console to the blockchain.
  2. Navigate to your Truffle project workspace, and enter truffle console in the Terminal in order to bring the console online.
  3. Enter the migrate command in order to migrate all your contracts to the Ganache test blockchain:
truffle(development)> migrate
  1. Once the contracts are deployed, note the contract address and keep them safe.
  2. Make sure that the contract address for the Gold, USD, and orderbook contracts are mapped correctly to the Gold.js, USD.js, and ...

Get Blockchain Development for Finance Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.