3 options
Truffle quick start guide : learn the fundamentals of Ethereum development / Nikhil Bhaskar.
- Format:
- Book
- Author/Creator:
- Bhaskar, Nagella Uday, author.
- Language:
- English
- Subjects (All):
- Distributed databases.
- Physical Description:
- 1 online resource (162 pages)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham : Packt, 2018.
- System Details:
- text file
- Summary:
- 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.
- Contents:
- Cover
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: 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
- Chapter 2: Web3 and Solidity in Truffle
- What is web3?
- Ganache-CLI
- Web3 in Truffle
- Solidity - a refresher
- Data types
- Arrays
- Structs
- Mapping
- Visibility specifiers
- Functions
- Function modifiers
- Function types
- Events
- Chapter 3: Choosing an Ethereum Client for Your Dapp
- 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
- 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
- Chapter 4: Migrating Your Dapp to Ethereum Blockchains
- 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.
- Chapter 5: Truffle and Popular JavaScript Technologies
- 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
- Diving into the Truffle and React code
- Truffle and Node
- Running our Truffle and Node application
- The node run steps
- Chapter 6: Testing Your Dapp
- Writing unit tests with Solidity
- Testing the TaskMaster
- Writing unit tests with JavaScript
- Testing for Solidity events
- Chapter 7: Truffle Gotchas and Best Practices
- Gas versus gas limit versus gas price
- Gas
- Gas price
- Gas limit
- Sync issues in Geth
- Security best practices
- Other Books You May Enjoy
- Index.
- Notes:
- Includes bibliographical references.
- Description based on print version record.
- ISBN:
- 9781789136975
- 1789136970
- OCLC:
- 1043661484
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.