Making use of Truffle boxes
Truffle provides helpful boilerplates known as Truffle boxes. Every box comes with different Solidity contracts, libraries, frontend and backend modules, user interface views, and related documentation. This can help you build your app in a much more efficient and simpler way.
In this recipe, you will learn about various boxes (react, uport, webpack, and so on) that can make your development workflow easier.
Getting ready
You need to have a working installation of Truffle on your system to try this recipe. Also, connection to a working Ethereum client is needed for testing and deployment.
How to do it...
- Use the
unbox
command to download and use a box. Boxes are directly integrated into the Truffle command line:
truffle unbox <box_name>
- Each box downloads related files and libraries for you to work with. Let's start with a very basic example, MetaCoin:
truffle unbox metacoin
This contains a basic MetaCoin contract along with related migration and test scripts. You...