Before we see how Truffle integrates with Geth, Parity, and Ganache, we need to create the folder where we will place the code for this chapter:
- Inside the truffle-practice folder, create a new folder called chapter3.
- Copy all the contents of chapter1 to chapter3.
- Ensure that chapter3 works without errors by performing the Build Steps.
- Inside chapter3\truffle.js in chapter3, change the port property of the module.exports.networks.development object to 8545. This will tell Truffle to correctly point to our local blockchain.
Your final truffle.js file should look like this:
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
}
}
}
Now, we're ready to see...