Frontend is implemented using MERN stack. Frontend is running on port 3000 and connect with Hyperledger Fabric Backend which is running on port 4000
- Account Creation
- Product Creation
- Product Update
- Product Order Request
- Order Accept
- Ship the Product
- Deliver Product
- Product Information Tracking
- Product Transaction History
- Clone the repository
$ git clone https://github.com/Kh125/supply-chain-management.git $ cd supply-chain-management
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.
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.
-
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.
Now you can access the supply chain management web application from port 3000.
#Thanks.