Follow the Install the Fabric Samples, Binaries, and Docker Images - v2.1.0. In this Fork, an election process is added using the Docker images from Fabric 2.1.0 version.
You should have the Prerequisites configured in your machine.
After running the curl -sSL https://bit.ly/2ysbOFE | bash -s part from the above link, the bin and config folders will be created, then you should copy those folders to this fork one.
- Added Electoral example, where you can find more info of setup and running
API Endpoints that represents the electoral process:
This image explain the relation between the API and the blockchain network:
The next snippet is the original Readme with informations about other examples. All the documentation links point to the version 2.1 of the Hyperledger.
Click to expand!
You can use Fabric samples to get started working with Hyperledger Fabric, explore important Fabric features, and learn how to build applications that can interact with blockchain networks using the Fabric SDKs. To learn more about Hyperledger Fabric, visit the Fabric documentation.
To use the Fabric samples, you need to download the Fabric Docker images and the Fabric CLI tools. First, make sure that you have installed all of the Fabric prerequisites. You can then follow the instructions to Install the Fabric Samples, Binaries, and Docker Images in the Fabric documentation. In addition to downloading the Fabric images and tool binaries, the instructions will make you clone the Fabric samples on your local machine.
You can use the following table to learn more about each sample, and find the corresponding tutorial or documentation.
Sample | Description | Documentation |
---|---|---|
Fabric test network | Get started by deploying a basic Fabric network on your local machine. | Using the Fabric test network |
Fabcar | Learn how to use the Fabric SDK's to invoke smart contracts from your client applications. | Writing your first application |
Commercial paper | Explore a use case in which two organizations use a blockchain network to trade commercial paper. | Commercial paper tutorial |
Interest rate swaps | Explore state based endorsement using a financial services use case. | Setting Key level endorsement policies |
Off chain data | Learn how to use the Peer channel-based event services to build an off chain database for reporting and analytics. | Peer channel-based event services |
High throughput | Learn how you can design your smart contracts to process a large volume of transactions. | |
First network | Deprecated. Use the Fabric test network to get started. | Build your first network |
Chaincode | A set of sample smart contracts used by other samples and the tutorials in the Fabric documentation. | Fabric tutorials |
Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.