Skip to content

Latest commit

ย 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ Farm2Door - Online Grocery Delivery Platform

Netlify Status React Node.js Express.js MongoDB JWT License Status

๐Ÿ“Œ Overview

Farm2Door is a full-stack MERN (MongoDB, Express.js, React.js, Node.js) online grocery delivery platform that connects customers directly with fresh farm produce. Users can browse products, manage carts, place orders, and track order history through a modern and responsive interface.


๐Ÿš€ Live Demo

๐ŸŒ Live Website: https://farm2door-app.vercel.app

Quick Links


โœจ Features

๐Ÿ‘ค User Features

  • User Registration & Login
  • JWT Authentication & Authorization
  • Browse Products by Categories
  • Product Search & Filtering
  • Add/Remove Items from Cart
  • Update Cart Quantity
  • Place Orders
  • View Order History
  • Manage User Profile

๐Ÿ› ๏ธ Admin Features

  • Admin Dashboard
  • Product Management (CRUD)
  • Order Management
  • User Management
  • Inventory Tracking

๐Ÿ“ธ Screenshots

๐Ÿ  Home Page

Home Page

๐Ÿšฎ Login Page

Login and Signup

๐Ÿšฎ Signup Page

Signup

๐Ÿ›’ Product Listing

Products

๐Ÿ” Best Seller Products

Best Seller Products

๐Ÿ” Product Details

Product Details

๐Ÿ” Category Details

Category Details

๐Ÿ›๏ธ Shopping Cart

Cart

๐Ÿ“ฆ Orders

Orders

โš™๏ธ Admin Dashboard

Admin Dashboard


๐Ÿ—๏ธ System Architecture

Client (React)
      โ”‚
      โ–ผ
REST APIs (Express.js)
      โ”‚
      โ–ผ
Node.js Server
      โ”‚
      โ–ผ
MongoDB Database

๐Ÿ› ๏ธ Tech Stack

Category Technologies
Frontend React.js, React Router, Axios
Backend Node.js, Express.js
Database MongoDB, Mongoose
Authentication JWT, bcryptjs
State Management Context API / Redux
Styling Tailwind CSS
Deployment Vercel, Render, MongoDB Atlas

๐Ÿ“‚ Project Structure

Farm2Door/
โ”‚
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ screenshots/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ””โ”€โ”€ App.jsx
โ”‚
โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ””โ”€โ”€ server.js
โ”‚
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ package.json

โš™๏ธ Installation & Setup

Clone the Repository

git clone https://github.com/prakashverma-dev/Farm2Door.git
cd Farm2Door

Install Dependencies

Frontend

cd client
npm install

Backend

cd server
npm install

Configure Environment Variables

Create a .env file inside the server directory:

PORT=5000

MONGODB_URI=your_mongodb_connection_string

JWT_SECRET=your_secret_key

CLIENT_URL= https://farm2door-app.netlify.app/

Run the Application

Backend

npm run server

Frontend

npm run dev

๐Ÿ”‘ API Endpoints

Authentication

POST /api/auth/register
POST /api/auth/login
GET  /api/auth/profile

Products

GET    /api/products
GET    /api/products/:id
POST   /api/products
PUT    /api/products/:id
DELETE /api/products/:id

Orders

POST /api/orders
GET  /api/orders/my-orders

๐Ÿ“ˆ Future Enhancements

  • Razorpay Payment Gateway Integration
  • Wishlist Functionality
  • Real-Time Order Tracking
  • Product Reviews & Ratings
  • AI-Based Product Recommendations
  • Email Notifications
  • Dark Mode Support

๐Ÿค Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch
git checkout -b feature/new-feature
  1. Commit your changes
git commit -m "Add new feature"
  1. Push to the branch
git push origin feature/new-feature
  1. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Prakash Kumar Verma


โญ If you found this project useful, please give it a star on GitHub!

About

Farm2Door is a full-stack MERN application that delivers fresh groceries directly from farms to customers, featuring secure authentication, real-time cart management, and seamless order processing.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages