Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Truffle Quick Start Guide

You're reading from  Truffle Quick Start Guide

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781789132540
Pages 170 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Nikhil Bhaskar Nikhil Bhaskar
Profile icon Nikhil Bhaskar

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:

  1. Inside the truffle-practice folder, create a new folder called chapter3.
  2. Copy all the contents of chapter1 to chapter3.
  3. Ensure that chapter3 works without errors by performing the Build Steps.
  4. 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}