Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

How to do it...

  1. Create a configuration file called truffle.js at the root of your project. It should be a JavaScript file that exports the configuration as an object in the required format.

  2. If you are using Windows, rename the configuration file to something like truffle-config.js to avoid any naming conflicts with the truffle command.

  1. Include the network object in the configuration file, which contains the network endpoint for deployment. It will connect the application to an environment running on localhost:8545 for migration and testing:
module.exports = {    networks: {        development: {            host: "localhost",            port: 8545,            network_id: "*" // Match any network id        }    }};
  1. Include the list of available networks for the migration process in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content