Get CropTwin up and running in 5 minutes!
Fastest way to see CropTwin in action:
-
Download or clone the repository
git clone https://github.com/NRR385/CropTwin.git cd CropTwin -
Open the dashboard
cd web start index.html(On Mac/Linux:
open index.html) -
Load demo data
- Click the green "Load Demo Data" button
- Watch the dashboard populate with simulated farm data
- Data updates automatically every 5 seconds
-
Control the demo
- Click "Stop Demo" (red button) to pause updates
- Click "Resume Demo" (yellow button) to continue
- Perfect for presentations and screenshots!
That's it! You're now viewing a fully functional demo with:
- 5-12 simulated farms across Telangana & Andhra Pradesh
- Real-time weather and satellite data
- Dynamic advisories based on crop conditions
- Live stress indicators
Prerequisites:
- AWS Account
- Node.js 18+ installed
- AWS CLI configured
npm installnpm run build# Configure AWS credentials
aws configure
# Bootstrap CDK (first time only)
npx cdk bootstrapnpm run deployThis will create:
- ✅ 15+ Lambda functions
- ✅ 10+ DynamoDB tables
- ✅ EventBridge rules
- ✅ SNS topics
- ✅ S3 buckets
- ✅ API Gateway endpoints
After deployment, you'll see:
Outputs:
CropTwinStack.ApiEndpoint = https://abc123.execute-api.region.amazonaws.com/prod
- Open
web/index.html - Paste your API endpoint
- Click "Save Configuration"
- Dashboard now shows real data!
After AWS deployment:
-
Register a test farm via SMS
Send SMS to your SNS number: REG RICE 2.5 HYDERABAD -
System will:
- Create digital twin
- Start monitoring
- Send confirmation SMS
- Begin advisory generation
-
Receive advisories
- Irrigation alerts
- Fertilizer recommendations
- Pest warnings
- Harvest timing
- ✅ Watch farms change health status (Healthy → Moderate → Critical)
- ✅ See advisories appear when stress levels increase
- ✅ Observe weather and satellite data updates
- ✅ Click on farms to see details
- ✅ Monitor SMS count increasing
- ✅ Register real farms
- ✅ Receive actual SMS advisories
- ✅ View real weather from IMD
- ✅ See satellite imagery from ISRO/NASA
- ✅ Track advisory effectiveness
- Check if
web/index.htmlis in the correct folder - Try a different browser (Chrome recommended)
- Clear browser cache
- Open browser console (F12)
- Look for JavaScript errors
- Refresh the page and click "Load Demo Data" again
- Verify AWS credentials:
aws sts get-caller-identity - Check AWS region is supported
- Ensure you have necessary permissions
- Try:
npm run buildfirst
- Delete
node_modulesandpackage-lock.json - Run
npm installagain - Check Node.js version:
node --version(should be 18+)
-
Explore the code
- Check
src/for backend logic - Look at
infrastructure/for AWS setup - Review
web/for dashboard code
- Check
-
Read documentation
- README.md - Full project overview
- ARCHITECTURE.md - System design
- CONTRIBUTING.md - How to contribute
-
Customize
- Add more crop types
- Modify stress thresholds
- Change advisory templates
- Add new features
-
Deploy for real
- Get IMD API key
- Get ISRO/NASA API keys
- Configure SMS gateway
- Set up monitoring
- Demo mode is perfect for presentations and testing
- Production mode requires AWS costs (~$50/month for 1000 farmers)
- Start with demo, deploy to AWS when ready
- Use CloudWatch logs to debug issues
- Monitor costs in AWS Cost Explorer
- Email: rohithreddyn2005@gmail.com
- LinkedIn: Rohith Reddy Nemtoor
- Issues: GitHub Issues
Happy farming! 🌾