Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgriSense (Improved)

AgriSense is a smart agricultural intelligence system designed to empower farmers and agricultural enthusiasts with AI-backed crop analysis, real-time weather monitoring, and regional analytics. This repository contains the improved, modular structure of the AgriSense platform.

Project Structure

The project is structured as a monorepo containing two main parts:

agrisense/
├── backend/      # Express API Server
└── frontend/     # React + Vite Web Client

Getting Started

1. Backend Setup

The backend is built with Node.js and Express.js, using MongoDB for storage and integrates with Google's Gemini AI and OpenWeather APIs.

  1. Navigate to the backend directory:
    cd backend
  2. Install dependencies:
    npm install
  3. Create a .env file in the backend/ directory with the following variables:
    PORT=5000
    MONGO_URI=your_mongodb_connection_uri
    GEMINI_API_KEY=your_google_gemini_api_key
    JWT_SECRET=your_jwt_signing_secret
    OPENWEATHER_API_KEY=your_openweather_api_key
  4. Run the development server (runs nodemon):
    npm run dev

2. Frontend Setup

The frontend is a modern SPA powered by React 19, Vite, TypeScript, and Framer Motion for premium glassmorphism layouts and transitions.

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Run the development server:
    npm run dev

Key Features & Technologies

Backend (/backend)

  • Express.js / Node.js: Core API development.
  • Google Gen AI SDK (@google/generative-ai): Powering crop advice and AI chats.
  • Mongoose / MongoDB: Database modeling and data persistence.
  • Express Rate Limit & Helmet: Security headers and API protection.
  • Joi: API payload validation schemas.

Frontend (/frontend)

  • Vite & React 19: Ultra-fast build toolchain and rendering.
  • Framer Motion: Smooth interface transitions and animations.
  • Lucide Icons: Modern vector icon set.
  • Glassmorphism UI: Beautiful aesthetic styles customized for agricultural stats.

About

using Artificial Intelligence, real-time weather data, crop knowledge, and modern cloud technologies. The platform provides personalized crop recommendations, AI-powered agricultural assistance, weather-based farming advice, disease diagnosis, and intelligent farming insights through an interactive chatbot.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages