
- 170 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
Develop, test, and deploy decentralized applications for Ethereum platform
Key Features
- Build your first Ethereum Dapp with Truffle: the most popular Ethereum development framework
- Build, compile, and deploy smart contracts in your development environment
- Embrace Blockchains and utilize it to create new generation of secured and scalable apps
Book Description
Truffle is a world-class development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier.
If you are a web developer wanting to try your hand at developing Dapps with Truffle, then this is the book for you. This book will teach you to write smart contracts and build Dapps with Truffle. You will begin with covering the basics of Truffle, briefly explaining how it integrates Solidity and Web3, in orderto start building a mini decentralized application. Also, you will dive into migration, testing and integrating Truffle with the use of popular JavaScript frameworks. Lastly, you will ship your decentralized application and package it into a product. Moreover, you will go through the best practices in Truffle, so as to increase your proficiency in building Dapps with Truffle.
By the end of the book, you will be able to write smart contracts and build decentralized applications with Truffle on Ethereum blockchains.
What you will learn
- Understand the fundamentals of Truffle and Web3
- Build a decentralized application with Truffle, while choosing the correct Ethereum client
- Connect your Dapp to Ethereum clients including Geth, Parity, and Ganache
- Migrate and test your Dapp with the correct networks such as Ropsten and Rinkeby
- Package a decentralized application into a user-friendly product by integrating Truffle with JavaScript frameworks such as Angular, React and Vue
- Explore tools including Ethereum Package Manager, the Registrar and browser wallets, and exploit third-party smart contract libraries.
- Evaluate the common migration pitfalls and how to mitigate them
Who this book is for
This book is for web developers who are interested in the new world blockchain. Some basic understanding of JavaScript and web services is required. No prior knowledge of Decentralized applications or blockchain is required.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Truffle and Popular JavaScript Technologies
- How to integrate Truffle with Angular
- How to integrate Truffle with React
- How to integrate Truffle with Node
It is not necessary to complete this chapter in order. If you are not interested in Angular but only in React, say, you can skip to the Truffle and React section.
Technical requirements
https://github.com/PacktPublishing/Truffle-Quick-Start-Guide/tree/master/Chapter05
http://bit.ly/2K8mA8K
Truffle and Angular
Once you have a basic understanding of Angular, you are ready to begin this section.
angular-truffle-starter-dapp
- Create a new folder called chapter5
- Go into chapter5 (cd chapter5)
- Create a new folder called truffle-angular
- Head over to the link mentioned above for the Angular-Truffle starter
- Clone it inside the truffle-angular folder
.
βββ truffle-angular
βββ angular4-truffle-starter-dapp
βββ CONTRIBUTING.md
βββ README.md
βββ build
βββ contracts
βββ e2e
βββ karma.conf.js
βββ migrations
βββ package.json
βββ protractor.conf.js
βββ src
βββ test
βββ truffle-config.js
βββ tsconfig.json
βββ tslint.json
Peeping into the src folder
.
βββ app
β βββ app.component.html
β βββ app.component.spec.ts
β βββ app.component.ts
β βββ app.module.ts
βββ assets
β βββ demo.gif
β βββ logo.png
βββ environments
β βββ environment.prod.ts
β βββ environment.ts
βββ favicon.ico
βββ index.html
βββ main.ts
βββ polyfills.ts
βββ services
β βββ meta-coin.service.spec.ts
β βββ meta-coin.service.ts
β βββ services.ts
β βββ web3.service.spec.ts
β βββ web3.service.ts
βββ styles.css
βββ test.ts
βββ tsconfig.app.json
βββ tsconfig.spec.json
βββ typings.d.ts
βββ util
βββ validation.spec.ts
βββ validation.ts
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Truffle for Decentralized Applications
- Web3 and Solidity in Truffle
- Choosing an Ethereum Client for Your Dapp
- Migrating Your Dapp to Ethereum Blockchains
- Truffle and Popular JavaScript Technologies
- Testing Your Dapp
- Truffle Gotchas and Best Practices
- Other Books You May Enjoy