Skip to content

DaxnGo/Cocopra.id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cocopra.id Logo

Cocopra.id

🌴 AI-Powered Agritech Platform for Coconut Farmers

Vue.js FastAPI Vite Tailwind CSS License: MIT

PROXOCORIS International Competition 2026 β€” Web Development Category

Team Trio Nyawit UVICS β€” Universitas Klabat, Sulawesi Utara

🌐 Live Demo Β· πŸ“Ή Video Demo Β· πŸ“„ Proposal


🌿 About

Cocopra.id is an integrated AI-powered agritech web platform designed to improve the welfare of coconut farmers in North Sulawesi, Indonesia. The platform addresses three critical challenges:

  • πŸ› Undetected pests β€” Rhinoceros Beetle attacks often go unnoticed until permanent damage occurs
  • πŸ’° Opaque copra pricing β€” Long supply chains and lack of local price data weaken farmers' bargaining power
  • πŸ“‹ Regulatory barriers β€” Difficulty accessing official pesticide guidelines from the government

🎯 Theme & Relevance

Competition Theme: "Bridging Gaps: Code for Earth, Intelligence for Justice, and Sustainability for Shaping Tomorrow"

Subtema: AI for Climate Justice and Social Resilience & Green Technology for All


✨ Features

Feature Description Status
πŸ” Pest-Vision Scanner AI-powered pest detection using CNN (98.4% accuracy) via Gemini Vision API βœ…
πŸ’Ή Adil-Harga Ledger Real-time copra price monitoring from local to global markets βœ…
πŸ—ΊοΈ Geo-Alert EWS Interactive map for early warning of pest spread by GPS location βœ…
πŸ€– RAG Agri-Assistant LLM chatbot grounded in official Ministry of Agriculture documents βœ…
βœ… Regulatory Check Instant pesticide legality verification from official database βœ…
πŸ“Š Dashboard Petani Personalized dashboard for farmers with activity feed & price widget βœ…
πŸ” Auth System Secure login/register with role-based access (Farmer / Agriculture Agency) βœ…
🌐 Bilingual EN/ID Full English & Indonesian language support via vue-i18n βœ…
πŸ“± Responsive Design Optimized for Desktop, Tablet, and Mobile βœ…
πŸ”Œ Offline-First PWA Works without internet, syncs when connection is available 🚧

πŸ› οΈ Tech Stack

Frontend

Technology Version Purpose
Vue.js 3.x Core framework
Vite 8.x Build tool & dev server
Tailwind CSS 3.x Utility-first styling
Vue Router 5.x Client-side routing
Vue i18n 9.x Internationalization (EN/ID)
Lucide Vue Latest Icon library
Chart.js + vue-chartjs 4.x Data visualization
Leaflet Latest Interactive maps
AOS Latest Scroll animations

Backend

Technology Purpose
Python + FastAPI REST API server
SQLite Local database
ChromaDB Vector store for RAG
Google Gemini API AI pest detection & assistant

πŸ“ Project Structure

Cocopra.id/
β”œβ”€β”€ PROXO/                    # πŸ–₯️ Frontend (Vue.js + Vite + Tailwind)
β”‚   β”œβ”€β”€ public/               #    Static assets & logo
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/       #    Reusable Vue components
β”‚   β”‚   β”‚   └── dashboard/    #    Dashboard-specific components
β”‚   β”‚   β”œβ”€β”€ views/            #    Page views
β”‚   β”‚   β”‚   └── dashboard/    #    Dashboard views
β”‚   β”‚   β”œβ”€β”€ api/              #    Axios API client
β”‚   β”‚   β”œβ”€β”€ i18n/             #    EN/ID translations
β”‚   β”‚   β”œβ”€β”€ router/           #    Vue Router config
β”‚   β”‚   β”œβ”€β”€ stores/           #    Pinia stores
β”‚   β”‚   β”œβ”€β”€ assets/           #    Images & SVGs
β”‚   β”‚   β”œβ”€β”€ App.vue           #    Root component
β”‚   β”‚   └── main.js           #    App entry point
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ backend/                  # βš™οΈ Backend (Python + FastAPI)
β”‚   β”œβ”€β”€ routers/              #    API route handlers
β”‚   β”‚   β”œβ”€β”€ assistant.py      #    RAG AI assistant
β”‚   β”‚   β”œβ”€β”€ auth.py           #    Authentication
β”‚   β”‚   β”œβ”€β”€ geo.py            #    Geo-Alert EWS
β”‚   β”‚   β”œβ”€β”€ harga.py          #    Copra price API
β”‚   β”‚   β”œβ”€β”€ pest.py           #    Pest scanner API
β”‚   β”‚   └── regulatory.py     #    Regulatory check
β”‚   β”œβ”€β”€ data/                 #    Reference data files
β”‚   β”œβ”€β”€ scripts/              #    Utility scripts
β”‚   β”œβ”€β”€ main.py               #    FastAPI app entry
β”‚   β”œβ”€β”€ models.py             #    Database models
β”‚   β”œβ”€β”€ schemas.py            #    Pydantic schemas
β”‚   β”œβ”€β”€ database.py           #    DB connection
β”‚   β”œβ”€β”€ rag_engine.py         #    RAG pipeline
β”‚   └── requirements.txt      #    Python dependencies
β”‚
β”œβ”€β”€ frontend/                 # πŸ“¦ Legacy React frontend (reference)
β”‚
β”œβ”€β”€ run_all.bat               # ▢️  Start both servers
β”œβ”€β”€ run_backend.bat           # ▢️  Start backend only
β”œβ”€β”€ run_frontend.bat          # ▢️  Start frontend only
β”œβ”€β”€ .gitignore
└── README.md                 # πŸ“„ This file

πŸš€ Getting Started

Prerequisites

  • Node.js >= 18.x & npm >= 9.x
  • Python >= 3.10

Quick Start

# 1. Clone the repository
git clone https://github.com/DaxnGo/Cocopra.id.git
cd Cocopra.id

# 2. Start both servers (Windows)
run_all.bat

Manual Setup

Frontend:

cd PROXO
npm install
npm run dev
# Opens at http://localhost:5173

Backend:

cd backend
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000
# API at http://localhost:8000/docs

πŸ‘₯ Team

Team Name: Trio Nyawit UVICS

Institution: Universitas Klabat, Sulawesi Utara, Indonesia

Role Name
🎨 UI/UX Designer Matthew Pangemanan
πŸ’» Frontend Developer Jeremiah Lengkong
βš™οΈ Backend Developer Jofan Kalengkongan

πŸ“„ License

This project is developed for PROXOCORIS International Competition 2026. Β© 2026 Trio Nyawit UVICS β€” Universitas Klabat.


🌴 Cocopra.id β€” Protecting Coconut Farms with Artificial Intelligence

Built with ❀️ from North Sulawesi, Indonesia

About

🌴 AI-powered agritech platform for coconut farmers. Features AI pest detection (Gemini Vision API), real-time copra price monitoring, Geo-Alert Early Warning System, and a RAG agricultural chatbot. Built with Vue 3, FastAPI, and Tailwind CSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors