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 w eb 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. Table of Contents Truffle for Decentralized Applications Web3 and Solidity in Truffle Choosing the client for your Dapp Migrating Your Dapp to Ethereum Blockchains Combining Truffle with Popular JavaScript Frameworks Testing Your Dapp Truffle Design Patterns 为以太坊平台开发,测试和部署分散式应用程序 主要特征 使用Truffle构建您的第一个Ethereum Dapp:最受欢迎的以太坊开发框架 在开发环境中构建,编译和部署智能合约 拥抱Blockchains并利用它来创建新一代安全和可扩展的应用程序 书说明 Truffle是一个世界级的开发环境,测试框架和以太坊的资产管道,旨在使以太坊开发人员的生活更轻松。 如果您是一名想要尝试用Truffle开发Dapps的网站开发人员,那么这本书适合您。本书将教你编写智能合约并用Truffle构建Dapps。您将首先介绍Truffle的基础知识,简要介绍它如何集成Solidity和Web3,以开始构建一个迷你分散应用程序。此外,您将深入了解使用流行的JavaScript框架迁移,测试和集成Truffle。最后,您将发布分散的应用程序并将其打包到产品中。此外,您将学习松露的最佳实践,以提高您使用松露制作Dapps的熟练程度。 在本书的最后,您将能够编写智能合约并使用Truffle在以太坊区块链上构建分散的应用程序。 你会学到什么 了解Truffle和Web3的基本原理 使用Truffle构建分散的应用程序,同时选择正确的以太坊客户端 将您的Dapp连接到以太坊客户端,包括Geth,Parity和Ganache 使用正确的网络(如Ropsten和Rinkeby)迁移和测试您的Dapp 通过将Truffle与Angular,React和Vue等JavaScript框架集成,将分散的应用程序打包成用户友好的产品 探索工具,包括以太坊软件包管理器,注册商和浏览器钱包,以及利用第三方智能合约库。 评估常见的迁移陷阱以及如何缓解这些陷阱 这本书的用途是谁 本书适用于对新世界区块链感兴趣的Web开发人员。需要对JavaScript和Web服务有一些基本的了解。不需要先前了解分散应用或区块链。 目录 松散的分散应用 Web3和松露的稳定性 为您的Dapp选择客户端 将您的Dapp迁移到以太坊区块链 结合松露与流行的JavaScript框架 测试你的Dapp 松露设计模式 eb 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. Table of Contents Truffle for Decentralized Applications Web3 and Solidity in Truffle Choosing the client for your Dapp Migrating Your Dapp to Ethereum Blockchains Combining Truffle with Popular JavaScript Frameworks Testing Your Dapp Truffle Design Patterns 为以太坊平台开发,测试和部署分散式应用程序 主要特征 使用Truffle构建您的第一个Ethereum Dapp:最受欢迎的以太坊开发框架 在开发环境中构建,编译和部署智能合约 拥抱Blockchains并利用它来创建新一代安全和可扩展的应用程序 书说明 Truffle是一个世界级的开发环境,测试框架和以太坊的资产管道,旨在使以太坊开发人员的生活更轻松。 如果您是一名想要尝试用Truffle开发Dapps的网站开发人员,那么这本书适合您。本书将教你编写智能合约并用Truffle构建Dapps。您将首先介绍Truffle的基础知识,简要介绍它如何集成Solidity和Web3,以开始构建一个迷你分散应用程序。此外,您将深入了解使用流行的JavaScript框架迁移,测试和集成Truffle。最后,您将发布分散的应用程序并将其打包到产品中。此外,您将学习松露的最佳实践,以提高您使用松露制作Dapps的熟练程度。 在本书的最后,您将能够编写智能合约并使用Truffle在以太坊区块链上构建分散的应用程序。 你会学到什么 了解Truffle和Web3的基本原理 使用Truffle构建分散的应用程序,同时选择正确的以太坊客户端 将您的Dapp连接到以太坊客户端,包括Geth,Parity和Ganache 使用正确的网络(如Ropsten和Rinkeby)迁移和测试您的Dapp 通过将Truffle与Angular,React和Vue等JavaScript框架集成,将分散的应用程序打包成用户友好的产品 探索工具,包括以太坊软件包管理器,注册商和浏览器钱包,以及利用第三方智能合约库。 评估常见的迁移陷阱以及如何缓解这些陷阱 这本书的用途是谁 本书适用于对新世界区块链感兴趣的Web开发人员。需要对JavaScript和Web服务有一些基本的了解。不需要先前了解分散应用或区块链。 目录 松散的分散应用 Web3和松露的稳定性 为您的Dapp选择客户端 将您的Dapp迁移到以太坊区块链 结合松露与流行的JavaScript框架 测试你的Dapp 松露设计模式