Sigsev-Dev / AdaniWilmar-Asset-Tracker-using-Hyperledger-Fabric-with-QR-code-Integration

Prototype for final round @Adani Jack The Hack Hackathon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asset Tracker using Hyperledger Fabric

Adani-Wilmar is a multi-million dollar conglomerate that offers most of the essential kitchen commodities for Indian consumers, including edible oil, wheat flour, rice, pulses, and sugar. It also offers a range of staples such as wheat flour, rice, pulses, and sugar, and these products are offered under a diverse range of brands across a broad price spectrum and cater to different customer groups.

The vast array of commodities in circulation make it essential for a robust and flexible supply chain to be in place for efficient transportation and transparency within the system. There is an immediate need for change in organizational focus from period-driven planning to event-driven execution to make the system reliable and transparent to consumers over time. There is a huge problem of traceability in the Adani-Wilmar supply chain as indicated by their annual traceability report and we propose to solve that problem by using state-of-the-art permissioned blockchain technology with QR code integration and possible extension with IOT devices.

In the initial stage, we have developed a prototype network with dummy nodes to display its potential. We have also displayed the QR code integration facility by constructing a dummy blockchain network and mapping the information on a OR code image. We refrained from developing a frontend component in our system in the inital stage, as we thought it would be better to discuss with mentors if we should develop an independent full-stack solution or an easily integrable API. We have also mentioned future scope in our projects README.md file which we plan to finish we get selected for the onsite round.

Here assumption is that you have installed all prerequisites that a standard Hyperledger Fabric requires.

Get solution git clone https://github.com/Kashyapdevesh/Asset-Tracker-using-Hyperledger-Fabric-with-QR-code-Integration.git cd code

BlockServer

this is web server based on nodejs and expressjs. facilitates following things.

  • Acts as client for Fabric network by using Fabric-Client sdk
  • Acts like a web server that wraps all the fabric interaction logic as REST API (GET, POST endpoints).
  • Bridge between a user interface layer and fabric network layer.

Starting the Fabric Network

Run following commands in BlockServer folder to start network, install dependencies, enroll Admin and register user.

cd BlockServer

npm install

cd BlockFabric

./startFabric.sh

Stop the network

To stop network after testing, run the given commands in BlockFabric folder cd BlockFabric

./stop.sh

Kill the network

To kill the complete network, use the ./teardown.sh in BlockFabric folder

cd BlockFabric

./teardown.sh

Future Scope :

  1. We plan to develop the complete solution(API/full-stack implementation if we get selected for the onsite round.
  2. We plan to add provision for scalable IOT devices in our network architecture
  3. We plan to test and display our network on the stage by simulating our devices as an IOT device to display the network's functioning

About

Prototype for final round @Adani Jack The Hack Hackathon.


Languages

Language:JavaScript 53.9%Language:Shell 21.9%Language:Go 21.6%Language:Python 2.5%