The Secure IoT Smart Health Monitoring System leverages blockchain technology to securely manage and store health data. This system allows for the monitoring of patients' vital signs while ensuring data integrity and security through the use of Ethereum and IPFS.
Before you begin, ensure you have the following installed:
git clone <your-repo-url>
cd <your-repo-directory>
cd backend
npm install
cd ../frontend
npm install
Create a .env
file in the root of your backend directory and set up the following variables:
MONGODB_URI=<your-mongodb-uri>
INFURA_PROJECT_ID=<your-infura-project-id>
INFURA_API_SECRET=<your-infura-api-secret>
PINATA_API_KEY=<your-pinata-api-key>
PINATA_API_SECRET=<your-pinata-api-secret>
Start the backend server:
cd backend
node index.js
Start the frontend application:
cd frontend
npm start
The smart contract is deployed on the Ethereum network. It accepts CID, timestamp, and patient ID for data storage.
The frontend is built using React and styled with Tailwind CSS. It allows users to input patient data and view health records.
This project is licensed under the MIT License.
Here’s a visual representation of the data flow in the system:
User Inputs Patient Data → Store Patient Data in MongoDB → Generate SHA-256 Hash → Store Hash in MongoDB → Upload Data to IPFS → Store CID in Smart Contract → Fetch Data → Verify CID → Return Health Data