万本电子书0元读

万本电子书0元读

顶部广告

Truffle Quick Start Guide电子书

售       价:¥

15人正在读 | 0人评论 9.8

作       者:Nikhil Bhaskar

出  版  社:Packt Publishing

出版时间:2018-06-27

字       数:16.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Develop, test, and deploy decentralized applications for Ethereum platform About This Book ? 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 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. 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 In Detail 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. Style and approach An intuitive, step-by-step and engaging guide that will teach you to build a real-world, decentralized application with Truffle.
目录展开

Title Page

Copyright and Credits

Truffle Quick Start Guide

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Code in Action

Conventions used

Get in touch

Reviews

Truffle for Decentralized Applications

Technical requirements

What is Truffle?

Let's build a mini Dapp

Let's build a to-do list

Initializing a Truffle project

Peeping into the folders

Peeping into the root files

Housekeeping before we write code

Writing our first smart contract

Adding an owner

Creating a reward method

Securing your contract with modifiers

Adding a utility method

Wrapping up

Building a user interface

Simple styling

Performing the build steps

Let's write some JavaScript

References

Summary

Web3 and Solidity in Truffle

Technical requirements

What is web3?

Ganache-CLI

Web3 in Truffle

Solidity – a refresher

Data types

Arrays

Structs

Mapping

Visibility specifiers

Functions

Function modifiers

Function types

Events

Summary

Choosing an Ethereum Client for Your Dapp

Technical requirements

Geth, Parity, and Ganache

What is an Ethereum client?

Geth

How does Geth work?

The power of Geth

Common GETH actions

Parity

The power of Parity

Common Parity actions

Ganache-CLI

The power of Ganache-CLI

Common Ganache-CLI actions

Choosing the correct Ethereum client

Truffle and Ethereum clients

Truffle and Geth

Truffle and Parity

Truffle and Ganache-CLI

Summary

Migrating Your Dapp to Ethereum Blockchains

Technical requirements

Let's migrate

Migrating your contracts to Ropsten with Parity

Creating a new Ropsten Parity account

Syncing Parity to Ropsten

Adding funds to our Parity coinbase account

Migrating our contract to Ropsten

Migrating our contract to kovan

Common migration pitfalls

Summary

Truffle and Popular JavaScript Technologies

Technical requirements

Truffle and Angular

angular-truffle-starter-dapp

Peeping into the src folder

Running the starter Dapp

Part 1

Part 2

Diving into Web3Service

MetaCoinService

Truffle and React

The Truffle and React starter

Peeping into the src folder

Diving into the Truffle and React code

Truffle and Node

Running our Truffle and Node application

The node run steps

Summary

Testing Your Dapp

Technical requirements

Writing unit tests with Solidity

Testing the TaskMaster

Writing unit tests with JavaScript

Testing for Solidity events

Summary

Truffle Gotchas and Best Practices

Gas versus gas limit versus gas price

Gas

Gas price

Gas limit

Sync issues in Geth

Security best practices

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部