Skip to content

haren1903/cowchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cowchain

Based on https://github.com/4eyes/workshoptage2018

Let's build a Blockchain application based on Hyperledger Fabric and Hyperledger Composer.

About

My name is Harun Seyfettin Uslu, student at the FHNW in Switzerland.

Supported platforms

These instructions are only for MacOSX and Linux (Debian or Ubuntu).

Prerequisites

Quick start

Clone the Repository

Fabric

  • $ 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.

download fabric binaries & docker images

  • $ ./scripts/download.sh -m binaries
  • $ ./scripts/download.sh -m images

Build the fabric network (for first time setup)

  • $ ./fabric.sh -m build

now if you run 'docker ps' you wil see that all containers are running

Composer

  • $ cd composer/

Install Composer (for first time setup)

  • $ ./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 ;)

Rest Server & mongo containers (Business network name is 'cowchain') (for first time setup)

Create rest & mongo containers

  • $ cd rest-server/
  • $ ./rest-server.sh -m build # business network name is 'cowchain'

Angular

Further Usage

Start or stop the network (not for first time setup)

  • $ cd fabric
  • $ ./fabric.sh -m start
  • $ ./fabric.sh -m stop

Remove the network including the data

  • $ cd fabric
  • $ ./fabric.sh -m down

Recreate the containers without losing the data (not for first time setup)

  • $ cd fabric/
  • $ ./fabric.sh -m recreate

If you want to update your business network (not for first time setup)

  • $ cd composer/
  • $ ./composer.sh -m upgrade # business network name is 'cowchain'

Start or stop composer-cli container (not for first time setup)

  • $ cd composer/
  • $ ./composer.sh -m start
  • $ ./composer.sh -m stop

Recreate the container without losing the data (not for first time setup)

  • $ cd composer/
  • $ ./composer.sh -m recreate

Remove the composer container including the data

  • $ cd composer
  • $ ./composer.sh -m down

Start or stop the rest Server & mongo containers (not for first time setup)

  • $ cd rest-server/
  • $ ./rest-server.sh -m start
  • $ ./rest-server.sh -m stop

Recreate the containers without losing the data (not for first time setup)

  • $ cd rest-server/
  • $ ./rest-server.sh -m recreate

Remove the rest & mongo containers including the data

  • $ cd rest-server/
  • $ ./rest-server.sh -m down

Links

About

This is the code of the cowchain written for the Master Thesis at the FHNW in Switzerland.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published