---
# System prepended metadata

title: Hyperledger fabric-first network
tags: [BlockChain]

---

# Hyperledger fabric-first network
###### tags: `BlockChain` 
環境
curl
Docker
Docker compose

    安裝curl
    sudo apt install curl

    確認Dokcer版本
    docker --version
    安裝Docker
    sudo apt install docker.io

    確認Docker compose版本
    docker-compose --version
    安裝Dokcer-compose
    sudo apt install docker-compose

    設定環境變數(Go Language)
    臨時的
    export GOPATH=$HOME/go
    export PATH=PATH:$GOPATH/bin
    永久的
    編譯/etc/profile加入上述兩條指令

    安裝Fabric Samples 和 binaries
    curl -sSL http://bit.ly/2ysbOFE | bash -s
    安裝Fabric v2.0.0 Alpha release v2.0.0-alpha
    curl -sSL http://bit.ly/2ysbOFE | bash -s -- 2.0.0-alpha 2.0.0-alpha 0.4.15
    
Building Your First Network
```進入fabric-samples/first-network
cd fabric-samples/first-network

Generate Network Artifacts
./byfn.sh generate

Bring Up the Network
./byfn.sh up