GithubHelp home page GithubHelp logo

kh125 / supply-chain-management Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 682 KB

JavaScript 46.70% Go 11.20% Shell 40.58% Python 1.09% HTML 0.18% CSS 0.24%
chaincode-go hyperledger-fabric mern-stack sdk-nodejs supply-chain-management

supply-chain-management's Introduction

Supply Chain Management using Hyperledger Fabric

Introduction

Frontend is implemented using MERN stack. Frontend is running on port 3000 and connect with Hyperledger Fabric Backend which is running on port 4000

Features

  1. Account Creation
  2. Product Creation
  3. Product Update
  4. Product Order Request
  5. Order Accept
  6. Ship the Product
  7. Deliver Product
  8. Product Information Tracking
  9. Product Transaction History

Getting Started

Installation

  • Clone the repository
    $ git clone https://github.com/Kh125/supply-chain-management.git
    $ cd supply-chain-management

Backend Setup

Go to backend/test-network directory

Before running ./startNetwork.sh, Give permission to startNetwork.sh by running this command:

chmod +x startNetwork.sh

Run this command for create the backend network structure:

./startNetwork.sh

startNetwork.sh will destroy the existing network first and then up the required network and create channel with ca for two organizations and deploy the chaincode.

After that, go to the backend/asset-transfer-basic/application-javascript:

Check node verison using this command:

node -v

If node.js version is less that 14., you will have to upgrade the node.js version to over 14. Recommended version is 16.. After upgrading the node.

Run this command to install required dependencies to run the backend fabric api:

npm i

Finally run this command to start the backend server:

npm start

Now your backend server is up and running on port 4000.

Frontend Setup

  • Go to frontend directory:

    $ cd supply-chain-management/frontend
  • Install Additional Depencies using this command.

    $ npm i
  • Start the frontend server

      $ npm start

    Frontend server is now up and running on port 3000.

Final Step

Now you can access the supply chain management web application from port 3000.

#Thanks.

supply-chain-management's People

Contributors

kh125 avatar

Stargazers

 avatar

Watchers

 avatar

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.