March 2019
Intermediate to advanced
636 pages
27h 50m
English
To initialize a new DApp project, we can run the truffle init command to initialize an empty Truffle project. This will create the DApp directory structure, including apps, contracts, and tests with Truffle configurations. Since Truffle Boxes provide many working templates, in our DApp example, we will use pet-shop box—a JQuery version of a JavaScript UI library—to develop our crowdfunding DApp example.
Create a folder called Crowdfunding, open a command-line prompt, navigate to the Crowdfunding folder, and run the following command:
truffle unbox pet-shop
The project structure is as follows:

We wrote the crowdfunding ...
Read now
Unlock full access