Skip to content

Anish-2005/AgriLink

Repository files navigation

AgriLink

AgriLink logo

AI-assisted agricultural waste marketplace for listings, demand matching, portfolio analytics, and carbon-impact tracking.

Live App | Contributing | License

Next.js React MongoDB Tailwind License


Overview

AgriLink helps teams convert agricultural waste into structured, market-ready supply through a single operational flow:

  • Capture and classify waste with AI-assisted inputs.
  • Publish listings and respond to industrial marketplace demand.
  • Track performance in a portfolio dashboard.
  • Measure carbon-equivalent impact from completed activity.

Product Modules

Module Route Purpose
Landing / Product positioning, trust signals, and conversion entry points
Upload Workspace /app AI-assisted listing intake and submission workflow
Marketplace /marketplace Tender discovery, filtering, and response workflow
Portfolio /portfolio Revenue and listing performance analytics
Carbon /carbon CO2-equivalent and token-impact dashboard
Auth /login, /api/auth/* Civic-based authentication flow

Architecture

flowchart LR
  UI[Next.js App Router UI]
  A[Server Actions]
  API[API Routes]
  DB[(MongoDB)]
  SB[(Supabase Storage)]
  AI[Puter/Gemini API]
  AUTH[Civic Auth]

  UI --> A
  UI --> API
  UI --> AUTH
  A --> DB
  A --> SB
  API --> AI
Loading

Tech Stack

Layer Tools
Frontend Next.js (App Router), React 18, Tailwind CSS
UI/Icons Lucide React, Framer Motion
Data MongoDB
Storage Supabase Storage
AI Puter API (Gemini model endpoint)
Auth @civic/auth

Quick Start

1) Install

npm install

2) Configure environment

Create .env.local in the project root:

# Required
MONGO_CS=
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

# Optional for server-side AI proxy calls
PUTER_API_KEY=

# Civic Auth variables
# Configure according to @civic/auth documentation for your app setup.

3) Run

npm run dev

App runs at http://localhost:3000.

Scripts

npm run dev      # Start local dev server
npm run build    # Production build
npm run start    # Start production server
npm run lint     # Lint project

Project Structure

app/
  actions/              # Server actions (MongoDB + Supabase workflows)
  api/                  # Route handlers (auth, gemini proxy)
  app/                  # Upload workspace page
  marketplace/          # Marketplace page
  portfolio/            # Portfolio page
  carbon/               # Carbon impact page
  login/                # Auth page
  components/           # Shared UI components
  layout.jsx            # Root layout + metadata
  page.jsx              # Landing page
lib/
  mongodbconnector.js   # MongoDB client helper
public/
  agrilink-logo.svg     # Brand mark

SEO

SEO is configured using App Router metadata and route generators:

  • app/layout.jsx for global metadata and JSON-LD
  • app/sitemap.js for /sitemap.xml
  • app/robots.js for /robots.txt

Deployment

The app is deployed on Vercel:

  • Production URL: https://agri-link-one.vercel.app/

For your own deployment, configure the same environment variables in your platform.

Contributing

See CONTRIBUTING.md for setup, branch strategy, and pull request guidelines.

License

This project is licensed under the MIT License. See LICENSE.

About

🌾AgriLink - From Waste to Wealth🌾 An AI-powered platform that transforms agricultural waste into valuable resources through blockchain technology. AgriLink connects farmers with industries, creating sustainable income streams while promoting environmental conservation.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors