Alright, so now that our exchange is complete, let's try running the app and see how it works:
- 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.
- Navigate to your Truffle project workspace, and enter truffle console in the Terminal in order to bring the console online.
- Enter the migrate command in order to migrate all your contracts to the Ganache test blockchain:
truffle(development)> migrate
- Once the contracts are deployed, note the contract address and keep them safe.
- Make sure that the contract address for the Gold, USD, and orderbook contracts are mapped correctly to the Gold.js, USD.js, and OrderbookABI.js contract interfaces in the exchange app code.
- Next, set up MetaMask to work with our project.
- Navigate to the main...