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

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
}
}
}
主站蜘蛛池模板: 无极县| 奉化市| 八宿县| 龙井市| 江都市| 阜城县| 澄城县| 长宁县| 永城市| 阿拉善左旗| 阿拉善盟| 崇左市| 沾益县| 乌拉特前旗| 玉溪市| 军事| 合肥市| 竹北市| 田阳县| 淳安县| 高邑县| 古丈县| 如东县| 台山市| 博野县| 措勤县| 神池县| 怀远县| 越西县| 巴塘县| 静宁县| 彭阳县| 博湖县| 科尔| 双桥区| 云梦县| 沂源县| 庆元县| 板桥市| 成武县| 抚松县|