Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
/ fyp-backend Public archive

backend for the hyperledger fabric implementation of the coffee supply chain

License

Notifications You must be signed in to change notification settings

sashankr98/fyp-backend

Repository files navigation

Instructions to run back-end

  • Clone the repo to a folder, say back-end
  • Install dependencies
cd back-end
npm install --save express cors morgan body-parse fabric-network
  • Open a terminal window in back-end and start the server. The server will start at http://localhost:4000
node index.js

Important: The paths mentioned in createClient.js and fabricClient.js are machine specific and are such that the folder with the blockchain components is at the same directory level as this back-end folder.

complete_network/
 ├── fyp-backend/
 └── fyp-blockchain/

If your file structure is different, then the paths in the mentioned filed need to be modified accordingly. config.yaml uses absolute paths so those need to be changed regardless of the project file structure so that it matches the system it is running on

About

backend for the hyperledger fabric implementation of the coffee supply chain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published