FarmFlow is a decentralized agricultural supply chain platform built on Solana using Next.js. This project was bootstrapped with create-next-app
. It enables farmers to log harvests, retailers to fund payments, and transporters to track produce, all secured by blockchain transparency.
Note: This is a prototype with ongoing modifications. Governance is a basic proposal/voting system, QR codes are temporary links, and images are currently stored on Firebase with plans to migrate to IPFS.
To run the development server locally:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 in your browser to see the app in action.
Start editing by modifying app/page.tsx
—the page auto-updates as you make changes.
This project uses next/font
to optimize and load Geist, a font family from Vercel.
app/
: Contains the Next.js pages and components (e.g.,page.tsx
for the homepage).program/
: Includes the Solana smart contract reference, written in Rust and built/deployed using Anchor. This folder serves as a reference for the contract logic.
To dive deeper into Next.js and Anchor:
- Next.js Documentation - Explore Next.js features and APIs.
- Learn Next.js - Interactive Next.js tutorial.
- Anchor Documentation - Learn about building Solana programs with Anchor.
Check out the Next.js GitHub repository and Anchor GitHub repository—feedback and contributions are welcome!
The simplest way to deploy FarmFlow is via the Vercel Platform. Visit the live deployment at https://farm-flow-fawn.vercel.app/.
For more details, see the Next.js deployment documentation.