ResQ Ledger is a disaster relief management system powered by AI and Blockchain, designed to ensure effective, transparent, and corruption-free distribution of aid during natural disasters.
- Multi-Model AI: Weather prediction, satellite imagery analysis, and social media sentiment tracking
- Real-Time Predictions: Live updates every 30 seconds with AI-calculated severity scores
- Blockchain Transparency: Immutable smart contract transactions
- Interactive Dashboard: Visual map showing affected regions with real-time data
- Automated Aid Distribution: Smart contracts automatically release aid based on AI-verified conditions
- React + TypeScript
- Vite
- Tailwind CSS
- shadcn/ui components
- React Query for data fetching
- Node.js + Express
- TypeScript
- Real-time AI prediction services
- Blockchain transaction simulation
cd resq-intel-dash-main
npm installcd server
npm install
npm run devThe backend server will run on http://localhost:3001
# In the resq-intel-dash-main directory
npm run devThe frontend will run on http://localhost:5173 (or port 8080 as configured)
Create a .env file in the server directory:
PORT=3001
NODE_ENV=development
OPENWEATHER_API_KEY=your_key_here # Optional
TWITTER_BEARER_TOKEN=your_token_here # Optional
CORS_ORIGIN=http://localhost:5173Note: If API keys are not provided, the system uses realistic simulated data for demonstration.
The frontend automatically connects to http://localhost:3001 by default. To change this, set the VITE_API_URL environment variable:
VITE_API_URL=http://your-api-url:3001 npm run devresq-intel-dash-main/
├── src/ # Frontend source code
│ ├── pages/ # Page components
│ ├── components/ # Reusable components
│ ├── lib/ # API client and utilities
│ └── hooks/ # React hooks
├── server/ # Backend server
│ ├── src/
│ │ ├── services/ # AI prediction services
│ │ ├── config/ # Configuration files
│ │ └── index.ts # Express server
│ └── package.json
└── package.json
Returns real-time AI predictions for disaster-affected regions.
Returns blockchain transaction data.
Health check endpoint.
- Weather Analysis: Random Forest, XGBoost, Linear Regression
- Satellite Imagery: CNN, U-Net, ResNet
- Social Media Sentiment: Sentiment Analysis, LSTM, BERT
- Demographic Analysis: Decision Tree, Regression
- Weather: OpenWeatherMap API
- Satellite: SentinelHub, NASA FIRMS
- Social Media: Twitter/X API
- Demographics: Government open data portals
npm run devcd server
npm run dev# Frontend
npm run build
# Backend
cd server
npm run build
npm start- AI metrics: Weather Severity, Satellite Damage, Social Urgency
- Interactive map with affected regions
- Live transaction feed
- Region rankings based on AI predictions
- Immutable transaction ledger
- Smart contract visualization
- Real-time transaction updates
- Public verification of all aid distribution
- The system uses simulated data if API keys are not configured
- Predictions update every 30 seconds
- Transactions are generated every 10 seconds for demonstration
- In production, replace simulated services with actual blockchain and AI model integrations
This project is for hackathon/demonstration purposes.