- Node.js 18+ installed
- npm or yarn package manager
cd resq-intel-dash-main
npm installcd server
npm installCreate a .env file in the server directory:
PORT=3001
NODE_ENV=development
CORS_ORIGIN=http://localhost:5173
# Optional: For real weather data
OPENWEATHER_API_KEY=your_openweather_api_key_here
# Optional: For real social media sentiment
TWITTER_BEARER_TOKEN=your_twitter_bearer_token_hereNote: If you don't provide API keys, the system will use realistic simulated data for demonstration.
In the server directory:
npm run devYou should see:
🚀 ResQ Ledger API server running on http://localhost:3001
In the resq-intel-dash-main directory:
npm run devThe frontend will be available at http://localhost:5173 (or port configured in vite.config.ts)
Navigate to http://localhost:5173 in your browser.
- AI Metrics: Real-time weather severity, satellite damage, and social urgency scores
- Interactive Map: Regions plotted with their severity levels (based on lat/lon coordinates)
- Aid Distribution: List of regions with their population, severity, and aid amounts
- Live Transactions: Real-time blockchain transaction feed
- Statistics: Total transactions, aid distributed, smart contracts, processing times
- Blockchain Visualization: Visual representation of blocks
- Transaction Ledger: Complete list of all verified and pending transactions
The backend provides:
GET /api/predictions- AI predictions and region dataGET /api/transactions- Blockchain transactionsGET /api/health- Health check
- Predictions: Updated every 30 seconds
- Transactions: Updated every 10 seconds
- Frontend: Automatically refetches data using React Query
- Sign up at https://openweathermap.org/api
- Get your free API key
- Add to
.envfile:OPENWEATHER_API_KEY=your_key
- Apply for Twitter Developer account
- Create an app and get Bearer Token
- Add to
.envfile:TWITTER_BEARER_TOKEN=your_token
- Make sure you've run
npm installin theserverdirectory - Check if port 3001 is already in use
- Verify Node.js version is 18+
- Make sure backend is running on port 3001
- Check CORS settings in backend
- Verify API URL in
src/lib/api.ts
- Check browser console for errors
- Verify backend is running and accessible
- Check network tab for API calls
- The system uses simulated data if API keys are not provided
- Predictions are cached for 30 seconds to reduce API calls
- Regions are based on real Indian disaster-prone areas:
- Kerala Flood Zones
- Mumbai Coastal Area
- Assam Flood Plains
- Odisha Cyclone Zone
- Replace simulated services with actual ML models
- Integrate real blockchain (Ethereum, Polygon, etc.)
- Connect to real satellite imagery APIs
- Add authentication and user management
- Deploy to production