A decentralized health monitoring system using ESP32 IoT sensors, blockchain, and a modern dashboard. Eliminates single points of failure and enables permissionless deployment.
BLocate enables real-time monitoring of patient vitals (heart rate, temperature, GPS location) through a fully decentralized architecture:
- β Real-time Monitoring (IoT sensors)
- β Smart Geofencing (auto alerts)
- β AI Health Interpretation (Gemini AI)
- β Immutable Blockchain Verification
- β Decentralized Storage (GunDB)
- β Guardian Alerts
- β Modern Frontend Dashboard
Backend:
Frontend:
No REST API required β frontend reads directly from blockchain + GunDB!
cd backend && npm install
cd ../frontend && npm installcd ../backend
cp .env.example .env
# Edit the .env file with the following data:
# NODE_ID=patient-guardian-node-1
# NODE_ENV=development
# MQTT_BROKER=mqtt://localhost:1883
# MQTT_USERNAME=
# MQTT_PASSWORD=
# TON_RPC=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# TON_PRIVATE_KEY=your_wallet_private_key_here
# TON_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
# SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# PRIVATE_KEY=your_wallet_private_key_here
# GEMINI_API_KEY=your_gemini_api_key_here
# GEMINI_API_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent
# AI_ENABLED=true
# AI_FALLBACK_MESSAGE=AI Unavailable# Windows
mosquitto -v
# Mac/Linux
brew install mosquitto && mosquitto -v# Backend
cd backend
npm start
# Frontend (new terminal)
cd frontend
npm run dev# Publish sample data to MQTT (new terminal):
mosquitto_pub -h localhost -t "patient/test-001/telemetry" -m '{"deviceId":"test-001","bpm":75,"temp":36.5,"gps":"14.5995,120.9842","timestamp":1700000000}'
# Buka dashboard di browser:
http://localhost:3000Blocate/
βββ backend/ # Node.js backend, smart contracts, MQTT, GunDB
βββ frontend/ # Next.js dashboard
βββ README.md # Root project infoPull requests and issues are welcome! Please follow conventional commit messages and ensure code is linted before submitting.
|
|||
| J. David Faculty of Engineering |
Hakim N. Faculty of Computer Science |
Bryan H. Faculty of Engineering |
Laura F.S. Faculty of Engineering |
Built for decentralized healthcare.




