Development with Truffle
Using Truffle is quite simple. Truffle provides lots of scaffolding code and configuration by default. Developers need only to reconfigure some of the out-of-the-box configuration options and focus on writing their contracts. Let's take a look at the following steps to bootstrap a new project using Truffle:
- The first step is to create a
project
folder that will hold all project- and Truffle-generated artifacts. Alternatively, a project is generated by Truffle if we provide a project name to theinit
command. - Navigate to the
project
folder and run theinit
command. Theinit
command refers to the initiation and initialization of Truffle within the folder. It will generate appropriate folders, code files, configuration, and linkage within the folder, as shown in the following screenshot:
The preceding code results in the following generated folder...