Skip to content

Latest commit

 

History

History
99 lines (78 loc) · 2.03 KB

File metadata and controls

99 lines (78 loc) · 2.03 KB

EcoWatch Setup Guide

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • MongoDB (local or Atlas)

Installation Steps

1. Install Backend Dependencies

cd backend
npm install

2. Install Frontend Dependencies

cd ../frontend
npm install

3. Environment Configuration

Create .env file in backend directory:

GEE_API_KEY=your_gee_api_key
NASA_API_KEY=your_nasa_api_key
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key
MONGODB_URI=mongodb://localhost:27017/ecowatch
PORT=5000

4. Start the Application

Backend:

cd backend
npm run dev

Frontend:

cd frontend
npm start

API Keys Setup

Google Earth Engine

  1. Visit Google Earth Engine
  2. Sign up for access
  3. Generate API key
  4. Add to .env file

OpenWeatherMap

  1. Visit OpenWeatherMap
  2. Create free account
  3. Generate API key
  4. Add to .env file

NASA APIs

  1. Visit NASA APIs
  2. Generate API key
  3. Add to .env file

Features Implemented

Dashboard Overview

  • Real-time forest metrics
  • NDVI trend visualization
  • Anomaly detection alerts

Interactive Map

  • Deforestation zones visualization
  • Severity-based color coding
  • Zone details on click

API Integration

  • Mock Google Earth Engine data
  • Weather data integration
  • Forest health metrics

Futuristic UI

  • Dark theme with neon accents
  • Smooth animations with Framer Motion
  • Responsive design

Next Steps

  1. Real API Integration: Replace mock data with actual GEE APIs
  2. Authentication: Implement JWT-based user authentication
  3. Machine Learning: Add predictive analytics for deforestation
  4. Real-time Updates: Implement WebSocket for live data
  5. Mobile App: Create React Native companion app

Troubleshooting

Port Issues: Change PORT in .env if 5000 is occupied CORS Errors: Ensure backend is running before frontend Map Not Loading: Check internet connection for tile layers