Tariffarm: A powerful tool for visualizing agricultural trade tariffs, costs, and routes with interactive 3D maps.
Tariffarm is a web-based platform designed to provide clarity and insight for agricultural trade.
It helps smallholder farmers, exporters, and traders to:
- 📦 Calculate applicable tariffs, duties, and regulatory fees
- 🛳 Discover optimal shipping routes (land, sea, air)
- 🗺 Visualize ports, customs points, logistics hubs
- 💸 Estimate total cost and delivery time
- 📊 See detailed cost breakdowns for freight, handling, permits, customs
✅ Secure login with Auth0
✅ Protected/private API endpoints
✅ Interactive 3D globe (amCharts)
✅ Dynamic node coloring & selection
✅ Animated trade routes with airplane icons
✅ City-level and country-level mapping
| Technology | Purpose |
|---|---|
| Python (Flask) | Backend API + Auth0 integration |
| React + Next.js | Dynamic frontend UI |
| amCharts 5 | 3D map & globe visualizations |
| Tailwind CSS | Responsive styling |
| Vercel | Deployment |
| Auth0 | Authentication |
| Gemini AI | Logic augmentation |
- 🌟 Dynamic city node highlighting on 3D globe
- 🌟 Animated arrows with custom airplane SVGs
- 🌟 Final result button triggers backend cost calculation
- 🌟 Expanded city/country support (50+ nodes)
- 🌟 Improved zoom and rotation controls
# Backend
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
flask run
# Frontend
cd frontend
npm install
npm run dev



