Truffle and Ethereum clients
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 calledchapter3
. - Copy all the contents of
chapter1
tochapter3
. - Ensure that
chapter3
works without errors by performing the Build Steps. - Inside
chapter3\truffle.js
inchapter3
, change the port property of themodule.exports.networks.development
object to8545
. 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 how Truffle works with Geth, Parity, and Ganache-CLI.
Don't worry about which network we connect to for the following sections. We are simply seeing...