This framework presents smart contracts for the construction business to suggest, select and track changes. It includes the smart contracts and tests to ensure their correct functionality.
-
Install truffle globally.
npm install -g truffle
-
Install dependencies of ChangeManager.
npm install
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile migrate
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
// If inside the development console.
test
// If outside the development console..
truffle test