Skip to content

Latest commit

Β 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’πŸŒΏ GreenCart

GreenCart is a modern web and mobile platform for the sale and management of organic products. It offers a seamless experience for customers and efficient tools for administrators, including real-time analytics and secure transactions.


πŸš€ Features

πŸ‘₯ For Customers

  • πŸ” User Authentication: Secure sign-up/login with email or social accounts (Google/Facebook).
  • πŸ›οΈ Browse Products: Easily search and filter by category, price, or availability.
  • πŸ›’ Shopping Cart: Manage items in real-time with automatic price calculation.
  • πŸ“¦ Order Management: Place orders, track delivery, and view history.
  • ⭐ Ratings & Reviews: Share feedback to help the community.

πŸ› οΈ For Admins

  • πŸ“¦ Product Management: Add/edit/delete products with inventory alerts.
  • πŸ“‘ Order Handling: Monitor and process customer orders.
  • πŸ‘€ Customer Insights: View profiles and activity logs.
  • πŸ“Š Analytics Dashboard: Track sales and engagement with rich metrics.

🧰 Tech Stack

πŸ–₯️ Frontend

  • βš›οΈ React.js
  • 🎨 CSS/SCSS, Material-UI

πŸ§ͺ Backend

  • 🟩 Node.js
  • πŸ” OAuth2, JWT Authentication

πŸ—ƒοΈ Database

  • πŸƒ MongoDB (NoSQL)

βš™οΈ Installation & Setup

πŸ”§ Prerequisites

  • βœ… Node.js & npm
  • βœ… MongoDB (local/cloud)
  • βœ… Git

πŸ“₯ Steps

  1. Clone the Repository
    git clone https://github.com/vanshh13/GreenCart.git
    
  2. Navigate to the Project Directory:
    cd GreenCart
  3. Install Dependencies:
    npm install
    
  4. Set Up Environment Variables: Create a .env file in the root directory and add the following:

env MONGO_URI= JWT_SECRET= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= FACEBOOK_APP_ID= FACEBOOK_APP_SECRET=

  1. Start the Development Server:
    npm start
    
    The application will be accessible at http://localhost:3000.
    

Contribution Guidelines

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature-name
    
  3. Commit your changes and push to the branch:
    git commit -m "Added feature-name"
    git push origin feature-name
    

πŸ“ Project Structure GreenCart/
β”œβ”€β”€ πŸ“ backend/ # Node.js backend files (API, DB config)
β”‚ β”œβ”€β”€ πŸ“ config/ # Environment config files
β”‚ β”œβ”€β”€ πŸ“ controllers/ # Route controllers for handling
β”‚ β”œβ”€β”€ πŸ“ middleware/ # Custom middleware (e.g., auth)
β”‚ β”œβ”€β”€ πŸ“ models/ # MongoDB models/schemas
β”‚ β”œβ”€β”€ πŸ“ routes/ # Express routes
β”‚ β”œβ”€β”€ πŸ“ utils/ # Utility functions (helpers)
β”‚ └── index.js # Entry point for backend server
β”‚
β”œβ”€β”€ πŸ“ frontend/ # React frontend source files
β”‚ β”œβ”€β”€ πŸ“ public/ # Static public assets
β”‚ β”œβ”€β”€ πŸ“ src/
β”‚ β”‚ β”œβ”€β”€ πŸ“ assets/ # Images, icons, and styles
β”‚ β”‚ β”œβ”€β”€ πŸ“ components/ # Reusable UI components
β”‚ β”‚ β”œβ”€β”€ πŸ“ pages/ # Page components (Home, Cart, Login)
β”‚ β”‚ β”œβ”€β”€ πŸ“ services/ # API calls and services
β”‚ β”‚ β”œβ”€β”€ πŸ“ context/ # Context API for global state
β”‚ β”‚ └── App.js # Main React app file
β”‚
β”œβ”€β”€ πŸ“„ .env # Environment variables
β”œβ”€β”€ πŸ“„ .gitignore # Ignored files and folders
β”œβ”€β”€ πŸ“„ package.json # Project metadata and scripts
β”œβ”€β”€ πŸ“„ README.md # Project documentation
└── πŸ“„ LICENSE # License file (if available)

πŸ–ΌοΈ Screenshots

  • πŸ§‘β€πŸ’Ό Login Page
    Screenshot (369)

πŸ‘€ Customer Side

  • 🏠 Home Page
    Screenshot (370)

  • πŸ—‚οΈ Product Page
    Screenshot (373)

  • πŸ’– Wishlist Page
    Screenshot (374) Quick view Screenshot (375)

  • πŸ›’ Shopping Cart Page
    Screenshot (378)

  • ✍️ Blog Page
    Screenshot (371)

  • πŸ™β€β™‚οΈ Profile Page
    Screenshot (376)

  • Payment With Razorpay: ---Screenshot (319)

πŸ” Admin Side

  • πŸ—‚οΈ Admin Dashboard
    Screenshot (379)

  • βž• Add Product
    Screenshot (380)

  • 🧾 Manage Products
    Screenshot (381)

  • πŸ“Š Analysis and Statistics
    Screenshot (382) Screenshot (383)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages