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)

Let's migrate

As mentioned in the previous chapter, we can migrate our smart contracts to various Ethereum blockchains using Geth. So, let's cover how to migrate to various Ethereum networks with Parity.

Firstly, what does it even mean to migrate a contract? Migrating simply means putting your contract on a specific Ethereum network so that it is accessible to and usable by others, be it other humans or computers.

You will often see the word deploy being used instead of migrate. In the context of smart contracts and decentralized applications, and Ethereum, just know that the words deploy and migrate are interchangeable.

First, let's do some housekeeping to prepare for the work we will be doing in this chapter:

  1. Create a new folder called chapter4.
  2. Copy all of the contents from chapter3 into chapter4.
  3. Perform the Build Steps to ensure that the project runs and...