- Truffle Quick Start Guide
- Nikhil Bhaskar
- 125字
- 2021-06-25 20:47:33
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
}
}
}
推薦閱讀
- HCNA網絡技術
- SD-WAN架構與技術(第2版)
- Building RESTful Web services with Go
- Mastering Dart
- Building Web Applications with ArcGIS
- Working with Legacy Systems
- Echo Quick Start Guide
- 紅藍攻防:構建實戰化網絡安全防御體系
- 物聯網場景設計與開發(初級)
- 無線傳感器網絡定位技術
- 圖解物聯網
- NB-IoT原理和優化
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 區塊鏈技術與應用:打造分布式商業新生態
- 通信系統實戰筆記:無處不在的信號處理