FarmConnect is a bilingual (English and Marathi) full-stack marketplace designed to connect farmers directly with vendors, reduce dependency on middlemen, and improve transparency in crop pricing.
- Frontend (Vercel): https://farmconnect-pied.vercel.app/
- Backend API (Render): https://farmconnect-api-cqc0.onrender.com
The platform includes:
- Live crop-buying listings posted by approved vendors
- Farmer, vendor, and admin role-based flows
- Admin approval workflow for vendor onboarding
- Government scheme reference section
- MSP (Minimum Support Price) information for key crops
- Community forum with likes and comments
farmconnect/
client/ React + Vite frontend
server/ Node.js + Express + MongoDB backend
- Frontend: React 18, Vite, Tailwind CSS, React Router, Axios
- Backend: Node.js, Express, MongoDB, Mongoose, JWT, bcryptjs
- Development: Nodemon, PostCSS, Autoprefixer
- Node.js 18+
- npm 9+
- MongoDB instance (local or Atlas)
cd server
npm install
copy .env.example .envUpdate server/.env with environment-specific values.
Start backend:
npm run devBackend runs on http://localhost:5000 by default.
cd client
npm install
npm run devFrontend runs on http://localhost:5173 by default.
PORT: API port (default:5000)MONGO_URI: MongoDB connection stringJWT_SECRET: JWT signing secretNODE_ENV: environment (developmentorproduction)ADMIN_EMAIL: seed admin email (used if no admin exists)ADMIN_PASSWORD: seed admin password (used if no admin exists)
VITE_API_URL: API base URL (fallback in source ishttps://farmconnect-api-cqc0.onrender.com/api)
VITE_API_URL=https://farmconnect-api-cqc0.onrender.com/api
npm run dev: start development servernpm run build: create production buildnpm run preview: preview production build locally
npm run dev: start server with nodemonnpm start: start server in standard mode
- Deploy backend from the
server/folder (for example on Render or similar providers) - Deploy frontend from the
client/folder (for example on Vercel or Netlify) - Set
VITE_API_URLin frontend deployment environment to your deployed backend API URL ending with/api - Current production API URL: https://farmconnect-api-cqc0.onrender.com/api
This version focuses on core marketplace capabilities and role-based workflows, with responsive support for mobile and desktop. Future versions can extend analytics, notifications, and deeper marketplace intelligence.