Intelligent agriculture platform — Next.js frontend + Laravel API.
frontend/ Next.js web app (UI for Farmer, Buyer, Admin)
api/ Laravel 12 REST API (auth, marketplace, wallet, AI)
backend/ Server-side tools and utility scripts
cd frontend
npm install
npx next dev -p 3323Set API URL in frontend/.env.local:
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000/api
$env:PHPRC = "$env:USERPROFILE"
cd api
php artisan migrate --seed
php artisan serve --host=127.0.0.1 --port=8000See api/README.md for endpoint docs.
Utility PHP scripts live in backend/tools/.
| Role | Password | |
|---|---|---|
| Farmer | farmer@agrinexus.com | password |
| Buyer | buyer@agrinexus.com | password |
| Admin | admin@agrinexus.com | password |
Buyer starts with ₹100,000 confirmation purse balance.