The Solidity contracts, tests, and migration scripts used in this chapter are present on GitHub at https://github.com/PacktPublishing/Mastering-Blockchain-Programming-with-Solidity/tree/master/Chapter05.
In this chapter, we are going to learn how to use Ganache to set up our local blockchain, and Truffle framework for the contract development environment. There are some pre-requisite tools that should be installed before installing Ganache and Truffle.
Ganache (local blockchain): You can use either of the Ganache to run your local blockchain:
- Ganache GUI: To install the GUI version of Ganache tool, you should have npm version v5.3.0 or later and NodeJS version v8.3.0 or later installed. The source code of the project can be found on GitHub at https://github.com/trufflesuite/ganache.
- Ganache CLI: To install the...