A smart web-based platform designed to assist farmers and agricultural officers in managing soil health, crop recommendations, distributor networks, and user data. Built using Next.js 14, Firebase, and Tailwind CSS, this application aims to simplify agricultural decision-making with a user-friendly dashboard, data visualization, and integrated Firestore backend.
.env.local
SetupMake sure to create a .env.local
file in your root directory and add the following Firebase credentials:
๐๏ธ How to Create the Project
npx create-next-app@latest soil-farming-agent --app --typescript
cd soil-farming-agent
npm install
โถ๏ธ How to Run Locally
npm run dev
๐ Project Folder Structure
soil-farming-agent/
โโโ app/
โ โโโ admin/
โ โ โโโ dashboard/page.jsx
โ โ โโโ view-soil/page.jsx
โ โ โโโ user-details/page.jsx
โ โ โโโ distributor-form/page.jsx
โ โโโ analytics/
โ โ โโโ page.jsx
โ โโโ soil-form/
โ โ โโโ page.jsx
โ โโโ login/
โ โ โโโ page.jsx
โ โโโ layout.jsx
โ
โโโ components/
โ โโโ Navbar.jsx
โ โโโ Chart.jsx
โ
โโโ lib/
โ โโโ Firebase.js
โ
โโโ public/
โ
โโโ styles/
โ โโโ globals.css
โ
โโโ .env.local
โโโ tailwind.config.js
โโโ next.config.js
โโโ README.md