Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Blockchain with Hyperledger

You're reading from  Hands-On Blockchain with Hyperledger

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781788994521
Pages 460 pages
Edition 1st Edition
Languages
Concepts
Authors (6):
Nitin Gaur Nitin Gaur
Profile icon Nitin Gaur
Luc Desrosiers Luc Desrosiers
Profile icon Luc Desrosiers
Venkatraman Ramakrishna Venkatraman Ramakrishna
Profile icon Venkatraman Ramakrishna
Petr Novotny Petr Novotny
Profile icon Petr Novotny
Salman A. Baset Salman A. Baset
Profile icon Salman A. Baset
Anthony O'Dowd Anthony O'Dowd
Profile icon Anthony O'Dowd
View More author details

Table of Contents (20) Chapters

Title Page
Copyright and Credits
Packt Upsell
Foreword
Contributors
Preface
1. Blockchain - Enterprise and Industry Perspective 2. Exploring Hyperledger Fabric 3. Setting the Stage with a Business Scenario 4. Designing a Data and Transaction Model with Golang 5. Exposing Network Assets and Transactions 6. Business Networks 7. A Business Network Example 8. Agility in a Blockchain Network 9. Life in a Blockchain Network 10. Governance, Necessary Evil of Regulated Industries 11. Hyperledger Fabric Security 12. The Future of Blockchain and the Challenges Ahead 1. Other Books You May Enjoy Index

Starting the chaincode development


Before we can start coding our chaincode, we need to first start up our development environment.

The steps of setting up the development environment has been explained in Chapter 3, Setting the Stage with a Business Scenario. However, we now proceed with starting up the Fabric network in dev-mode. This mode allows us to control how we built and run the chaincode. We will use this network to run our chaincode in the development environment.

Here is how we start the Fabric network in dev mode:

$ cd $GOPATH/src/trade-finance-logistics/network
$ ./trade.sh up -d true  

Note

If you encounter any error while the network start, it could be caused by some left-over Docker container.  You can resolve this by stopping the network using ./trade.sh down -d true and running the following command: ./trade.sh clean -d true. The -d true option tells our script to take action on the dev network.

Our development network is now running in four Docker containers. The network is...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}