Book Image

Truffle Quick Start Guide

By : Nikhil Bhaskar
Book Image

Truffle Quick Start Guide

By: Nikhil Bhaskar

Overview of this book

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.
Table of Contents (9 chapters)

What this book covers

Chapter 1, Truffle for Decentralized Applications, introduces you to Truffle and explains why it is used and how it works from a high level. It will also demonstrate how JavaScript, Solidity, and Web3 interact inside the basic Truffle environment.

Chapter 2, Web3 and Solidity in Truffle, concerns Web3 and its related APIs and uses in Truffle. You will gain an understanding of the fundamentals of Web3 and how it is used in Truffle.

Chapter 3, Choosing an Ethereum Client for Your Dapp, is about various Ethereum clients, and will highlight the use case for each one and show you how to integrate each Ethereum client with your Truffle application.

Chapter 4, Migrating Your Dapp to Ethereum Blockchains, teaches you how to correctly migrate your Truffle application to Ethereum blockchains. You will also learn about common pitfalls when attempting to migrate your application.

Chapter 5, Truffle and Popular JavaScript Technologies, illustrates the use of Truffle with modern JavaScript technologies such as Angular, React, and Node.js. You will learn how to integrate Truffle with JavaScript frontend libraries and frameworks as well as on the backend with Node.js.

Chapter 6, Testing Your Dapp, demonstrates to you the importance of thoroughly testing your smart contracts, detailing various techniques and approaches for successfully testing a Truffle application.

Chapter 7, Truffle Gotchas and Best Practices, explains the common mistakes people make when developing with Truffle, as well as how to remedy them. Lastly, you will learn and understand how to diagnose and resolve common blockchain issues, such as chain syncing, as well as some best security practices.