Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wearetheledger/fabric-network-boilerplate
Boilerplate for starting your hyperledger fabric network
https://github.com/wearetheledger/fabric-network-boilerplate
boilerplate chaincode docker-compose fabric-network hyperledger-fabric nodejs typescript
Last synced: 14 days ago
JSON representation
Boilerplate for starting your hyperledger fabric network
- Host: GitHub
- URL: https://github.com/wearetheledger/fabric-network-boilerplate
- Owner: wearetheledger
- License: mit
- Created: 2018-03-02T12:18:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T03:34:29.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T17:14:54.929Z (3 months ago)
- Topics: boilerplate, chaincode, docker-compose, fabric-network, hyperledger-fabric, nodejs, typescript
- Language: Shell
- Homepage: https://theledger.be
- Size: 3.05 MB
- Stars: 67
- Watchers: 11
- Forks: 28
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hyperledger-fabric - Hyperledger Fabric network boilerplate - Network boilerplate for easily setting up a new network. (Boilerplates / Network)
README
# Hyperledger Fabric Network boilerplate
This repo is a snippet of the fabcar [fabric sample](https://github.com/hyperledger/fabric-samples) with the basic network. It also includes our [fabric-node-chaincode-utils](https://github.com/wearetheledger/fabric-node-chaincode-utils) to test and develop nodejs chaincode. It contains a fabric network with 1 peer and 1 CA.## Starting
Before starting, you will need to pull all the images of Hyperledger fabric to your desktop and tag them as latest. We included a script to do this. By default it will try to pull in `1.4.4` but you can pull a custom version by adding the version as a parameter.
```bash
./scripts/bootstrap.sh [optional_custom_version]
```
Starting this network requires you to run following command. This will automatically setup your docker network using docker-compose and install your chaincode.
```bash
./scripts/startFabric.sh
```## Writing chaincode
For writing chaincode we're using our package [fabric-node-chaincode-utils](https://github.com/wearetheledger/fabric-node-chaincode-utils), which makes writing chaincode much faster and easier.
## Testing
For testing we're using our package [fabric-mock-stub](https://github.com/wearetheledger/fabric-mock-stub) in wich we wrote a mock chaincode stub for imitating the way the actual stub handles the interaction with Hyperledger Fabric.