
上QQ阅读APP看书,第一时间看更新
Peeping into the root files
Here are the important root files:
- package.json: This is a standard file that includes all the production and development dependencies of our project. Have a look through the dependencies if you are interested.
- truffle.js: This file contains configuration details about migrating your smart contracts to a specific Ethereum network. For now, you will simply connect to a local network. You will learn how to migrate your smart contract to various Ethereum networks in Chapter 4, Migrating Your Dapp to Ethereum Blockchains.
Here's a quick snippet:
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 7545,
network_id: '*' // Match any network id
}
}
}