Chapter 9, Truffle Basics and Unit Testing
Init
is used for initializing atruffle
project,Migrate
is used to build and deploy contracts on the target network,test
is used to execute unit tests within a truffle project, andconsole
is used to interactively work with the network using truffle.- By modifying the
truffle.json
file and adding network details in thejson
format:networks: { development: { host: "127.0.0.1", port: 8545, network_id: "*" // Match any network id } }