This project has two parts:
- Client (React + Vite)
- Server (Flask + Google Earth Engine)
git clone https://github.com/shivamm-verma/Earth-Resource-Monitor.git
cd Earth-Resource-MonitorWindows (PowerShell):
cd Server
python -m venv .venv
.\.venv\Scripts\Activate.ps1Windows (CMD):
cd Server
python -m venv .venv
.venv\Scripts\activate.batmacOS/Linux:
cd Server
python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txt- Copy the example file:
cp .env.example .envOn Windows PowerShell, use:
Copy-Item .env.example .env- Open
.envand fill values using your Google service account key details.
Important for GEE_PRIVATE_KEY:
- Keep it in one line.
- Replace line breaks with
\\n.
python app.pyBackend runs on: http://localhost:5000
In a new terminal:
cd Client
npm install
npm run devFrontend runs on: http://localhost:5173
deactivate- Example fetch url: (Local)
http://127.0.0.1:5000/api/vegetation?lat=28.61&lon=77.20&start_date=2023-01-01&end_date=2023-12-31- Example fetch url: (Deployed)
https://earth-resource-monitor-backend.onrender.com/api/vegetation?lat=28.61&lon=77.20&start_date=2023-01-01&end_date=2023-12-31