Based on https://github.com/4eyes/workshoptage2018
Let's build a Blockchain application based on Hyperledger Fabric and Hyperledger Composer.
My name is Harun Seyfettin Uslu, student at the FHNW in Switzerland.
These instructions are only for MacOSX and Linux (Debian or Ubuntu).
- cURL -> MacOSX: http://macappstore.org/curl & Ubuntu: $ sudo apt install curl
- git -> https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- Docker & Docker Compose -> https://docs.docker.com/compose/install/
- nodejs (8lts version) & npm -> https://nodejs.org/en/download/package-manager/
- $ git clone https://github.com/haren1903/cowchain.git
- $ cd cowchain
- $ cd fabric
if you want to change the domain name of your organisation, you can change the DOMAIN variable value in .env file. if you want to change the logging level of the peers you can change the FABRIC_LOGGING_LEVEL variable value from INFO to DEBUG in .env file.
- $ ./scripts/download.sh -m binaries
- $ ./scripts/download.sh -m images
- $ ./fabric.sh -m build
now if you run 'docker ps' you wil see that all containers are running
- $ cd composer/
- $ ./composer.sh -m build
Deploy the network and create the cards (Business network name is 'cowchain') (for first time setup)
- $ ./composer.sh -m deploy # business network name is 'cowchain' & it will take a while ;)
- $ cd rest-server/
- $ ./rest-server.sh -m build # business network name is 'cowchain'
- $ cd angular/
- $ npm install
- $ npm start
- Open http://localhost:4200/ on your browser
- $ cd fabric
- $ ./fabric.sh -m start
- $ ./fabric.sh -m stop
- $ cd fabric
- $ ./fabric.sh -m down
- $ cd fabric/
- $ ./fabric.sh -m recreate
- $ cd composer/
- $ ./composer.sh -m upgrade # business network name is 'cowchain'
- $ cd composer/
- $ ./composer.sh -m start
- $ ./composer.sh -m stop
- $ cd composer/
- $ ./composer.sh -m recreate
- $ cd composer
- $ ./composer.sh -m down
- $ cd rest-server/
- $ ./rest-server.sh -m start
- $ ./rest-server.sh -m stop
- $ cd rest-server/
- $ ./rest-server.sh -m recreate
- $ cd rest-server/
- $ ./rest-server.sh -m down
- Hyperledger Fabric Documentation: https://hyperledger-fabric.readthedocs.io/en/release-1.1/
- Hyperledger Composer Documentation: https://hyperledger.github.io/composer/latest/installing/installing-index.html
- Hyperledger Composer Playground: https://composer-playground.mybluemix.net/