Muneef Rehman
Muneef Rehman

Reputation: 1

How to set up and connect the frontend and backend for a Hyperledger Fabric-based project from GitHub?

I’m working on a project called MedReX, which is a blockchain-based web application for managing electronic medical records. The project involves both a frontend (built with React) and a backend (using Hyperledger Fabric). I downloaded the repositories from GitHub, but I’m struggling to set up the entire application from scratch and connect the frontend with the backend.

I want to know: 1. How to set up the Hyperledger Fabric network for this project? 2. How to start the backend server and make sure it interacts correctly with the Hyperledger Fabric network? 3. How to run the frontend and connect it with the backend?

I need a step-by-step guide on the following: 1. Setting up Hyperledger Fabric (prerequisites, Docker setup, network configuration) 2. Running the backend server 3. Running the React frontend 4. Connecting the frontend to the backend

Here are the GitHub repositories I’m working with:

https://github.com/zeylmnop97/medrex-app
https://github.com/RamlahAziz/medrex-chaincode-fabric-1.4
https://github.com/RamlahAziz/medrex-business-network

What I tried: I tried following the README files from both the frontend and backend repositories, but I’m not sure if I did everything correctly. I ran some Docker commands to set up the Hyperledger Fabric network and started the backend server. The backend starts without errors, but I’m not sure if it’s properly connected to the Fabric network.

I also started the React frontend using the following command:

npm start

I expected it to connect to the backend API. Instead, I get errors related to API calls, and it seems like the connection isn’t established between the frontend and backend.

What I expected: I was expecting a fully functional app where: 1. The frontend interacts with the backend 2. The backend communicates with the blockchain network

However, I couldn’t achieve that, and I’m not sure which step I missed.

Upvotes: 0

Views: 36

Answers (0)

Related Questions