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

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
}
}
}
主站蜘蛛池模板: 吉水县| 上蔡县| 读书| 报价| 宁夏| 潼南县| 乌拉特后旗| 永定县| 齐河县| 宁陕县| 吉木萨尔县| 克拉玛依市| 遵义县| 嘉鱼县| 铜山县| 出国| 攀枝花市| 辉县市| 沂南县| 广昌县| 永济市| 历史| 大埔区| 贵德县| 成都市| 商都县| 府谷县| 龙泉市| 尼木县| 沁阳市| 文昌市| 台州市| 陕西省| 达拉特旗| 武胜县| 和林格尔县| 连平县| 澜沧| 五大连池市| 南宫市| 嵊泗县|