conglt10 / Fabcar-Hyperledger-Fabric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hyperledger Fabric Samples

Please visit the installation instructions

to ensure you have the correct prerequisites installed. Please use the version of the documentation that matches the version of the software you intend to use to ensure alignment.

Download Binaries and Docker Images

The installation instructions will utilize scripts/bootstrap.sh (available in the fabric repository)

script to download all of the requisite Hyperledger Fabric binaries and docker images, and tag the images with the 'latest' tag. Optionally, specify a version for fabric, fabric-ca and thirdparty images. If versions are not passed, the latest available versions will be downloaded.

The script will also clone fabric-samples repository using the version tag that is aligned with the Fabric version.

Step 1: You can also download the script and execute locally:

# Fetch bootstrap.sh from fabric repository using

curl -sS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o ./scripts/bootstrap.sh

# Change file mode to executable

chmod +x ./scripts/bootstrap.sh

# Download binaries and docker images

./scripts/bootstrap.sh [version] [ca version] [thirdparty_version]

Step 2:

cd fabcar
./startFabric.sh

Step 3:

cd fabcar/javscript
node enrollAdmin.js
node registerAdmin.js
node query.js

Step 4: Run API server:

yarn
node app.js

Step 5: Run front-end with ReactJS

cd client
yarn
yarn start

Turn off network and delete docker image

cd /fabric-samples/first-network
./byfn.sh down
docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q)

Continuous Integration

Please have a look at Continuous Integration Process

License

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/.

About

License:Apache License 2.0


Languages

Language:Shell 32.9%Language:Go 25.8%Language:JavaScript 25.0%Language:Java 11.1%Language:TypeScript 4.4%Language:HTML 0.6%Language:CSS 0.3%