Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schadokar/logistics-blockchain-network
this project is developed on Hyperledger Composer
https://github.com/schadokar/logistics-blockchain-network
blockchain fabric hyperledger-composer hyperledger-fabric logistics reactjs
Last synced: 7 days ago
JSON representation
this project is developed on Hyperledger Composer
- Host: GitHub
- URL: https://github.com/schadokar/logistics-blockchain-network
- Owner: schadokar
- Created: 2019-10-28T04:32:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T15:26:55.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T17:36:34.879Z (7 months ago)
- Topics: blockchain, fabric, hyperledger-composer, hyperledger-fabric, logistics, reactjs
- Language: JavaScript
- Size: 1.62 MB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logistic Network Setup
This project is developed and tested on Linux 18.04 AWS t2.medium 40GB machine.
## Instructions to setup the hyperledger composer on the linux machine.
#### Pre-requisites
```
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh
```#### :exclamation: Logout and Login back.
### Install Composer Components
#### 1. Essential CLI tools:
```
npm install -g [email protected]
```#### 2. Composer REST Server
```
npm install -g [email protected]
```#### 3. Install Composer Playground
```
npm install -g [email protected]
```#### 4. Install Hyperledger Fabric
```
mkdir ~/fabric-dev-servers && cd ~/fabric-dev-serverscurl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz
``````
cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12
./downloadFabric.sh
```### Start the Network
#### 1. Clean the network if it was running before:
```
cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12
./stopFabric.sh
./teardownFabric.sh
./downloadFabric.sh
./startFabric.sh
```#### 2. Create Peer Admin Card
```
./createPeerAdminCard.sh
```> All the screenshots of the below steps are attached in the bottom of this section.
> Please refer them if you find any problem.#### 3. Start Composer Playground
```
composer-playground
```Open the composer playground in the browser.
Composer playground is started locally on the vm.
To access the playground on your web browser, instead of `http://localhost:8080`
Use `ipaddress_of_vm:8080`.Deploy the `logistics-network.bna` in My Business Network not in the Web Browser.
#### :clipboard: Note down the admin.
Scroll down and select ID and Secret.
Username: `admin`
Password: `adminpw`Now click `Deploy`
#### 4. Start Rest Server
Open a new terminal```
composer-rest-server
```enter the admin card: `admin@logistics-network`
#### > :grey_exclamation: Note: if you didn't note down it, open composer playground dashboard. The heading `admin@something` is the admin card name
enter "No" to everything except test explorer.
##### Now your `composer-rest-server` started. :tada:
### Configure the Client (Frontend)
Open `config.json` in the `src` folder :open_file_folder:.
Change the `serverURL` to the server address where composer-rest-server is running.
Change the `timeRaster` min interval. By default it is set to 10 (mins).
#### Install all the dependencies
Run `npm install` inside the client folder.
#### Start the Application
Run `npm run start`
Open the application on `localhost:3000`.
## Application Setup and Action Screenshot :clapper:
It is assumed that you started the fabric successfully.
### Composer Playground
### Composer Rest Server
### Application Demo