/MedicalRecord

Primary LanguageJavaScriptMIT LicenseMIT

🛠️ Built With

img1 Following technologies and libraries are used for the development of this project.

📌 Installation

To setup the project locally follow the steps below

💻 Prerequisites

🤖 Running the project.

To set this up in the local repository:

  1. Fork and clone the project to your local system
  2. Copy the commands below to install the dependencies:
npm i -g truffle
npm run client:install
npm run truffle:install
  1. Now, start a local Ethereum blockchain network on your system using Ganache. Ganache provides you with 10 testing accounts each with 100 ETH.

  2. Obtain Infura API Key and API Secret for IPFS from Infura Dashboard, and create a dedicated gateway for your project. Set the environment variables in client/.env file. Or you can rename client/.env.example to client/.env

REACT_APP_INFURA_PROJECT_ID=...
REACT_APP_INFURA_API_KEY_SECRET=...
REACT_APP_INFURA_DEDICATED_GATEWAY=....
  1. Then, copy the following commands to deploy the smart contracts to the local Ethereum blockchain and start the React app:
npm run truffle:migrate
npm run client:start
  1. Set up Metamask to connect to the local blockchain created by Ganache(i.e. http://localhost:8545/)

  2. Now, obtain the private keys of some of the accounts from Ganache and import the accounts into Metamask wallet.

  3. You're ready to go. Visit http://localhost:3000/ to check out MediChain