A cutting-edge full-stack web application that monitors forest health and detects deforestation using real Google Earth Engine (GEE) integration, satellite data processing, and immersive 3D visualizations.
- Frontend: React, TailwindCSS, Framer Motion, Three.js, Recharts, Leaflet
- Backend: Node.js, Express, Google Earth Engine SDK
- Database: MongoDB
- APIs: Google Earth Engine, OpenWeatherMap, Global Forest Watch
- Authentication: JWT with role-based access
- 3D Graphics: Three.js with React Three Fiber
/
├── backend/
│ ├── middleware/ # Authentication & security
│ ├── models/ # MongoDB schemas
│ ├── routes/ # API endpoints
│ ├── services/ # Google Earth Engine integration
│ └── server.js # Express server
├── frontend/
│ └── src/
│ ├── components/ # React components
│ │ ├── Earth3D.js # 3D Earth visualization
│ │ ├── AdvancedMap.js # GEE-powered map
│ │ ├── FuturisticDashboard.js
│ │ └── LayerControl.js # Map layer toggles
│ └── data/ # API integrations
└── gee-setup.md # Google Earth Engine setup
- Node.js and npm (or yarn)
- Git
-
Clone the repository:
git clone <repository-url> cd EcoWatch
-
Install backend dependencies:
cd backend npm install -
Install frontend dependencies:
cd ../frontend npm install
IMPORTANT: Follow these steps in order. Open TWO separate command prompt windows.
- Open first command prompt
- Navigate to backend folder:
cd "D:\FOREST MONITORING\backend"
- Start the backend:
npm start
- Wait until you see:
Server running on port 5000 - Keep this window open
- Open second command prompt
- Navigate to frontend folder:
cd "D:\FOREST MONITORING\frontend"
- Start the frontend:
npm start
- Wait until you see:
Compiled successfully! - Keep this window open
Open your browser and go to:
http://localhost:3000
Note: Both servers must be running simultaneously. Do not close either command prompt window.
✅ Real Google Earth Engine Integration
- Sentinel-2 satellite imagery processing
- MODIS Land Surface Temperature data
- Hansen Global Forest Change dataset
- Real-time NDVI calculations
✅ Futuristic 3D Interface
- Interactive 3D Earth visualization
- Glassmorphism design with neon accents
- Smooth animations with Framer Motion
- Animated counters and live data updates
✅ Advanced Map Visualization
- Multi-layer satellite data overlay
- Interactive region analysis
- Time-range controls
- Real-time deforestation alerts
✅ Authentication & Security
- JWT-based authentication
- Role-based access (Admin/Researcher/User)
- Secure API endpoints
- Google Earth Engine - Satellite data processing
- OpenWeatherMap - Weather data integration
- JWT Secret - Authentication security
Create .env file in backend directory:
GEE_SERVICE_ACCOUNT_KEY=./gee-service-account.json
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key
JWT_SECRET=your_jwt_secret_key
MONGODB_URI=mongodb://localhost:27017/ecowatch
PORT=5000