{"id":18497666,"url":"https://github.com/schadokar/logistics-blockchain-network","last_synced_at":"2025-10-24T18:46:51.505Z","repository":{"id":55307479,"uuid":"217966458","full_name":"schadokar/logistics-blockchain-network","owner":"schadokar","description":"this project is developed on Hyperledger Composer","archived":false,"fork":false,"pushed_at":"2022-12-11T15:26:55.000Z","size":1702,"stargazers_count":9,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:44:33.656Z","etag":null,"topics":["blockchain","fabric","hyperledger-composer","hyperledger-fabric","logistics","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schadokar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-28T04:32:07.000Z","updated_at":"2025-02-10T20:44:01.000Z","dependencies_parsed_at":"2023-01-27T02:01:24.839Z","dependency_job_id":null,"html_url":"https://github.com/schadokar/logistics-blockchain-network","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schadokar%2Flogistics-blockchain-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schadokar%2Flogistics-blockchain-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schadokar%2Flogistics-blockchain-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schadokar%2Flogistics-blockchain-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schadokar","download_url":"https://codeload.github.com/schadokar/logistics-blockchain-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949665,"owners_count":21023364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","fabric","hyperledger-composer","hyperledger-fabric","logistics","reactjs"],"created_at":"2024-11-06T13:35:18.928Z","updated_at":"2025-10-24T18:46:46.451Z","avatar_url":"https://github.com/schadokar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logistic Network Setup\r\n\r\nThis project is developed and tested on Linux 18.04 AWS t2.medium 40GB machine.\r\n\r\n## Instructions to setup the hyperledger composer on the linux machine.\r\n\r\n#### Pre-requisites\r\n\r\n```\r\ncurl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh\r\nchmod u+x prereqs-ubuntu.sh\r\n./prereqs-ubuntu.sh\r\n```   \r\n\r\n#### :exclamation: Logout and Login back.\r\n\r\n### Install Composer Components\r\n\r\n#### 1. Essential CLI tools:\r\n\r\n```\r\nnpm install -g composer-cli@0.20\r\n```\r\n\r\n#### 2. Composer REST Server\r\n\r\n```\r\nnpm install -g composer-rest-server@0.20\r\n```\r\n\r\n#### 3. Install Composer Playground\r\n\r\n```\r\nnpm install -g composer-playground@0.20\r\n```\r\n\r\n#### 4. Install Hyperledger Fabric\r\n\r\n```\r\nmkdir ~/fabric-dev-servers \u0026\u0026 cd ~/fabric-dev-servers\r\n\r\ncurl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz\r\ntar -xvf fabric-dev-servers.tar.gz\r\n```\r\n\r\n```\r\ncd ~/fabric-dev-servers\r\nexport FABRIC_VERSION=hlfv12\r\n./downloadFabric.sh\r\n```\r\n\r\n### Start the Network\r\n\r\n#### 1. Clean the network if it was running before:\r\n\r\n```\r\ncd ~/fabric-dev-servers\r\nexport FABRIC_VERSION=hlfv12\r\n./stopFabric.sh\r\n./teardownFabric.sh\r\n./downloadFabric.sh\r\n./startFabric.sh\r\n```\r\n\r\n#### 2. Create Peer Admin Card\r\n\r\n```\r\n./createPeerAdminCard.sh\r\n```\r\n\r\n\u003e All the screenshots of the below steps are attached in the bottom of this section.   \r\n\u003e Please refer them if you find any problem.  \r\n\r\n#### 3. Start Composer Playground\r\n\r\n```\r\ncomposer-playground\r\n```\r\n\r\nOpen the composer playground in the browser.\r\n\r\nComposer playground is started locally on the vm.\r\n\r\nTo access the playground on your web browser, instead of `http://localhost:8080`\r\nUse `ipaddress_of_vm:8080`.\r\n\r\nDeploy the `logistics-network.bna` in My Business Network not in the Web Browser.\r\n\r\n#### :clipboard: Note down the admin.\r\n\r\nScroll down and select ID and Secret.\r\n\r\nUsername: `admin`  \r\nPassword: `adminpw`  \r\n\r\nNow click `Deploy`  \r\n\r\n#### 4. Start Rest Server  \r\n   Open a new terminal\r\n\r\n```\r\ncomposer-rest-server\r\n```\r\n\r\nenter the admin card: `admin@logistics-network`  \r\n\r\n#### \u003e :grey_exclamation: Note: if you didn't note down it, open composer playground dashboard. The heading `admin@something` is the admin card name\r\n\r\nenter \"No\" to everything except test explorer.\r\n\r\n##### Now your `composer-rest-server` started. :tada:\r\n\r\n### Configure the Client (Frontend)\r\n\r\nOpen `config.json` in the `src` folder :open_file_folder:.\r\n\r\nChange the `serverURL` to the server address where composer-rest-server is running.\r\n\r\nChange the `timeRaster` min interval. By default it is set to 10 (mins).\r\n\r\n#### Install all the dependencies\r\n\r\nRun `npm install` inside the client folder.\r\n\r\n#### Start the Application\r\n\r\nRun `npm run start`\r\n\r\nOpen the application on `localhost:3000`.\r\n\r\n## Application Setup and Action Screenshot :clapper:\r\n\r\nIt is assumed that you started the fabric successfully.\r\n\r\n### Composer Playground\r\n\r\n\u003cimg src=\"images/playground-1.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/playground-2.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/playground-3.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/playground-4.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/playground-5.PNG\"/\u003e\r\n\r\n### Composer Rest Server\r\n\r\n\u003cimg src=\"images/composer-1.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/composer-2.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/composer-3.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/composer-4.PNG\"/\u003e\r\n\r\n### Application Demo\r\n\r\n\u003cimg src=\"images/application-1.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-2.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-3.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-4.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-5.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-6.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-7.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-8.PNG\"/\u003e\r\n\r\n\u003cimg src=\"images/application-9.PNG\"/\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschadokar%2Flogistics-blockchain-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschadokar%2Flogistics-blockchain-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschadokar%2Flogistics-blockchain-network/lists"}