Skip to content

Latest commit

 

History

History
136 lines (113 loc) · 4.28 KB

File metadata and controls

136 lines (113 loc) · 4.28 KB

AgriHub Indonesia - Task Checklist

Phase 0: Setup & Dokumentasi

  • Baca PDF plan
  • Buat CONTEXT.md
  • Buat implementation_plan.md
  • Buat task.md
  • Initialize monorepo (root package.json, workspaces)
  • Git init & commit awal

Sprint 1 (S1): Foundation (Minggu 1-2)

Monorepo Structure

  • Root package.json + npm workspaces (apps/*, packages/*)
  • apps/backend/ (Express.js + Knex + SQLite)
  • apps/frontend/ (Vite + React 19 + Tailwind v4)
  • packages/shared/ (types, calculateFees, constants)
  • Root tsconfig, .gitignore, .env.example

Server Foundation

  • Express.js + helmet + cors + rate-limit
  • Knex.js SQLite(dev) / PostgreSQL(prod) config
  • Auto-migration startup — 16 tabel lengkap
  • Seeds 102 komoditas/tanaman (6 kategori)
  • JWT middleware (requireAuth, requireAdmin)
  • Routes: auth, products(CRUD), stores, orders

Client Foundation

  • Vite 5 + React 19 + TypeScript
  • Tailwind CSS v4 Forest Green theme
  • Framer Motion page transitions
  • React Router v6 + protected routes
  • Zustand auth store (persisted localStorage)
  • TanStack Query data fetching
  • Landing page (hero + 4 pilar + WA demo)
  • Login/Register page (glassmorphism)
  • Dashboard layout (sidebar + page transitions)
  • Dashboard, Marketplace, Seller, Orders, Wallet pages
  • AI Chat / Price Monitor / Matching stubs

Commit S1

  • chore: initialize AgriHub Indonesia monorepo structure
  • feat(server): Express + Knex + SQLite + JWT + seeds 100+ tanaman

Sprint 1.5: Enhanced Auth & Shipping (Lost History Restored)

Auth System (from bd0c1a31)

  • Push root git
  • Migration 014: username, email_verified, phone_verified, OTP columns
  • Migration 015: app_settings table (SMTP config)
  • emailService.ts (Nodemailer, config from DB)
  • Upgrade auth.ts routes (register, login, login-puter, OTP endpoints)
  • Upgrade admin.ts (SMTP settings CRUD)
  • Complete LoginPage.tsx rewrite (Puter OAuth, username, email, phone OTP, password show/hide, strength)
  • Upgrade AdminPage.tsx (SMTP settings section)

Marketplace Shipping (from 437e2476)

  • Implement real-time shipping cost in checkout modal
  • Integration with Biteship API (postal code based)
  • Update orders table with shipping_fee
  • Midtrans line-item for shipping fee

Sprint 2 (S2): RAG & AI Chat (Minggu 3-4)

RAG Engine (Server)

  • Puter.js AI SDK integration
  • Document parser: PDF, DOCX, XLSX
  • URL scraper knowledge base
  • YouTube transcript parser
  • Embedding & vector storage (SQLite)
  • RAG retrieval & prompt injection

AI Chat (Client)

  • Chat interface (streaming)
  • Upload dokumen ke knowledge base
  • Group credit system

Commit S2

  • feat(server): RAG engine & document parser
  • feat(client): AI chat interface

Sprint 3 (S3): WhatsApp, Payments, Escrow (Minggu 5-6)

WhatsApp Bot

  • Baileys.js integration
  • Perintah bot personal & grup
  • Alur menu stok/toko via WhatsApp
  • RAG integration di bot

Marketplace & Payments

  • CRUD produk (dengan foto)
  • Keranjang belanja
  • Midtrans Snap integration
  • Midtrans Webhook
  • Sistem Escrow (hold → release)
  • Dompet Penjual
  • Kalkulasi komisi & PPN
  • Dashboard laporan keuangan

Commit S3

  • feat(server): WhatsApp bot Baileys.js
  • feat: marketplace & product CRUD
  • feat: Midtrans payment & escrow

Sprint 4 (S4): Matching, Logistik, Monitoring (Minggu 7-8)

Demand-Supply Matching

  • Model data supply/demand
  • Algoritma matching berbasis wilayah
  • Saran harga equilibrium
  • Visualisasi dashboard

Price Monitoring

  • Scraper harga pangan nasional
  • Model prediksi harga sederhana
  • Sistem alert inflasi
  • Dashboard chart (Recharts)
  • Peta distribusi (Leaflet)

Logistik (Biteship)

  • Cek ongkir multi-kurir
  • Booking pengiriman
  • Tracking resi
  • Notifikasi WhatsApp pengiriman

Commit S4

  • feat: demand-supply matching algorithm
  • feat: price monitoring & scraper
  • feat: Biteship logistics integration

Final

  • End-to-end testing
  • Performance optimization
  • Deployment config (Puter.com)
  • Dokumentasi final
  • chore: final deployment & docs