How ganeshchate2004/smartfarming works
Project type and purpose
• This is a full-stack, IoT-enabled agriculture solution combining:
• A React-based frontend (UI/dashboard)
• A Node.js/Express/MongoDB backend (REST API + data persistence)
• A standalone Flask service hosting a CNN model (image classification)
• IoT devices (NodeMCU with sensors) feeding real-time data
File structure
• Top‐level directories:
• AI model/ – Flask app (app.py), TensorFlow model, dataset, templates & static
• backend/ – Express app (app.js), controllers, models, routes, MongoDB config
• frontend/ – React app (Vite), components, styles, public assets
• nodemcu.cpp – firmware for NodeMCU
• Patterns & components:
• REST API layer in backend/routes → controllers → models → MongoDB
• Flask microservice for AI (separate server)
• React SPA calling both services via Axios
• IoT firmware pushing sensor data to Express API
README for additional insights
• Confirms MERN stack + Flask AI + NodeMCU IoT
• Features: live sensor dashboard, image‐based disease detection, fertilizer/medicine suggestions, price prediction
• Deployment steps for frontend, backend, and AI model