This project includes a Node.js/Express backend and a React frontend built for scalable farm monitoring with NDVI satellite data integration.
- Open
c:\climate\backend - Copy
.env.exampleto.env - Fill in your MySQL database credentials and
AGRO_API_KEY - Install dependencies:
npm install
- Run the backend:
npm run dev
The backend API runs on http://localhost:3000 by default.
- Open
c:\climate\frontend - Install dependencies:
npm install
- Run the React app:
npm run dev
The frontend runs on http://localhost:4173 by default and connects to the backend API.
GET /api/farms- list all farmsGET /api/farms/:id- farm detail with NDVI historyPOST /api/farms- add a new farm and fetch NDVI summaryGET /api/health- backend health check