官术网_书友最值得收藏!

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 4Migrating 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
}
}
}
主站蜘蛛池模板: 武清区| 云南省| 绥宁县| 鄂伦春自治旗| 阿城市| 鄯善县| 神池县| 辽宁省| 绥中县| 石城县| 新安县| 保山市| 和政县| 介休市| 永济市| 左权县| 乌鲁木齐市| 五原县| 京山县| 江陵县| 黄冈市| 含山县| 皮山县| 临湘市| 出国| 榆林市| 邵阳县| 清原| 广元市| 邵东县| 广河县| 北宁市| 康保县| 昌都县| 六安市| 延安市| 尉氏县| 策勒县| 河间市| 石首市| 马龙县|