Giter VIP home page Giter VIP logo

blockchain_supplychain's Introduction

Blockchain : Pharmaceutical SupplyChain

This project showcases the journey of Medicine on blockchain.

The Pharmaceutical supply chain is the sequence of activities and process to bring raw drugs and matrials from supplier(farms) to processed medicine in Pharm.

Problems in Exixting System


  • Shipment visibility
  • Expiration
  • Slow Process and Error prone paper work
  • Mutable and Invalid source
  • Lack of coordination

What we are providing


  • Accurate information across the entire chain at any point and at any location
  • Instant access to real-time updates and alerts if issues are detected
  • Visibility of all handovers in the supply chain
  • Traceability back to source of all materials
  • Seamless collaboration between all parties
  • Reduce paper work and Speedup process

Application Workflow Diagram


Roles


  1. Admin
  2. Supplier
  3. Transfporter
  4. Manufacturer
  5. Wholesaler
  6. Distributer
  7. Pharma

Admin : Admin register new users and assigne roles accourding to there work. Supplier : Supplier supply raw materials manufacturer by creating new batch with details of farm. Transporter : Transporter are responsible for shipping packages/consignment form one stage to other. Manufacturer : Manufacturer is responsible to manufacturer new medicine batches for shipping to either Wholesaler or Distribute, by updating information of raw materials details(like batchID and consumption units) that are use to manufacture new batch medicine and quantity. Wholesaler : Wholesaler is reponsible to receive medicine from Manufacturer and validate medicine quality, than transfer to Distributer. Distrubuter : Distributer is reponsible to distribute medicne to pharms and do varification on medicine quality and condition. Pharma : Pharma is reponsible to provide right medicine to customer as per doctor priscribed and update medicine status.

Tools and Technologies


  • Solidity (Ethereum Smart Contract Language)
  • Metamask (Ethereum wallet)
  • Ropsten test network ( use ropsten faucet to get ethers on ropsten network )
  • Truffle
  • Infura
  • Web3JS
  • AngularJS

Prerequisites


Contract Deployment Steps:


Setting up Ethereum Smart Contract:

git clone https://github.com/kamalkishorm/Blockchain_SupplyChain.git
cd Blockchain_SupplyChain/

**Update truffle.js **

module.exports =
{
    networks:
    {
	    development:
		{
	   		host: "localhost",
	   		port: 8545,
	   		network_id: "*" // Match any network id
		}
    },
    ropsten: {
    	provider: function() {
                var mnemonic = "letter casino spread lawn water toward extend public gasp turn wave bone";//put ETH wallet 12 mnemonic code
                return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/v3/"+infuraKey);
		    },
        gas: 8000000,
        gasPrice: 60000000000,
		network_id: '3'
	}
};

Go to your project folder in terminal then execute :

rm -rf build/
truffle compile
truffle migrate --network ropsten reset

Please note:

  1. After successfully deployment you will get response in bash terminal like below
Starting migrations...
======================
> Network name:    'ropsten'
> Network id:      3
> Block gas limit: 8007811


1_initial_migration.js
======================

   Deploying 'Migrations'
   ----------------------
   > transaction hash:    0x22a002f941602ff792cb66ea26b7c9acea8fbde14a7343789e0ae4b349a9ff75
   > Blocks: 1            Seconds: 109
   > contract address:    0xC30C388ceD2f27691B1aD0E70c1B51D726343acb
   > account:             0xdd56707585Bd9392500bBb30eEf767fb33299FF8
   > balance:             4.00294387495
   > gas used:            283300
   > gas price:           60 gwei
   > value sent:          0 ETH
   > total cost:          0.016998 ETH


   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:            0.016998 ETH


2_deploy_supplychain.js
=======================
[ '0xdd56707585Bd9392500bBb30eEf767fb33299FF8' ]

   Deploying 'SupplyChain'
   -----------------------
   > transaction hash:    0xd05404fd8a8481e4c867052760f14b5b290473848a9956873df52785819e4946
   > Blocks: 2            Seconds: 9
   > contract address:    0xE384741Cb0346543D8f7d5b72d0ff3663FC548d4
   > account:             0xdd56707585Bd9392500bBb30eEf767fb33299FF8
   > balance:             3.61046395495
   > gas used:            6499304
   > gas price:           60 gwei
   > value sent:          0 ETH
   > total cost:          0.38995824 ETH


   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:          0.38995824 ETH


Summary
=======
> Total deployments:   2
> Final cost:          0.40695624 ETH

Blockchain SupplyChain UI:


Setting up SupplyChain UI:

git clone https://github.com/kamalkishorm/Pharmaceutical_Supplychain-UI.git
cd Pharmaceutical_Supplychain-UI/
npm i
ng serve

blockchain_supplychain's People

Contributors

kamalkishorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

blockchain_supplychain's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.