Introducing Truffle
Truffle is an accelerator that helps increase the speed of development, deployment, and testing, and increases developer productivity. It is built specifically for Ethereum-based contract and application development. At the time of writing this book, the latest Truffle version is 5.5.5. It is a Node.js runtime-based framework that can help implement DevOps, continuous integration, continuous delivery, and continuous deployment with ease. It provides a command-line interface through which it can be configured and managed.
Installing Truffle is quite simple. A prerequisite for installing Truffle is Node.js, as it is deployed as a Node.js package.
The latest version of Truffle can be installed by executing the following npm
command from the command line:
$ npm install -g truffle
Here, npm
refers to node package manager, and the -g
switch signifies installation at a global scope. The following screenshot shows the installation of Truffle on macOS. The command...