REPOSITORY OVERVIEWLive repository statistics
★ 2Stars
⑂ 0Forks
◯ 0Open issues
◉ 2Watchers
62/100
OPENREPOHUB HEALTH SIGNALMixed signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100 Community adoption25% weight
5 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
60 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
GreenCart – Full‑Stack E‑Commerce Platform
📖 Overview
GreenCart (formerly GreenStack) is a modern, full‑stack e‑commerce application built with React 19, Node.js, Express, and MongoDB. It offers secure user authentication, product management, a shopping cart, Stripe‑based payment processing, and a dedicated seller dashboard.
🚀 Features
Customer Features
- User Authentication – Secure login & registration
- Product Browsing – Browse products by categories
- Shopping Cart – Add, update, remove items
- Address Management – Save & manage delivery addresses
- Order Management – View order history & track orders
- Payment Processing – Secure payments via Stripe
Seller Features
- Seller Dashboard – Manage inventory & orders
- Product Management – Add, edit, delete products
- Order Management – View & update customer orders
- Image Upload – Cloudinary integration for product images
🛠️ Tech Stack
| Layer | Technology |
|---|
| Frontend | React 19, Vite, Tailwind CSS, React Router DOM, Axios, React Hot Toast |
| Backend | Node.js, Express, MongoDB Atlas, Mongoose, JWT, bcryptjs |
| Payments | Stripe |
| Media | Cloudinary |
| Deployment | Vercel |
📁 Project Structure
grencart/
├─ client/ # React frontend
│ ├─ public/ # Static assets
│ ├─ src/
│ │ ├─ assets/ # Images & icons
│ │ ├─ components/ # Reusable UI components
│ │ │ └─ seller/ # Seller‑specific components
│ │ ├─ context/ # React context for state
│ │ ├─ pages/ # Page components (incl. seller dashboard)
│ │ └─ ...
│ ├─ package.json
│ └─ vite.config.js
├─ server/ # Express backend
│ ├─ configs/ # Configuration files
│ ├─ controllers/ # Route controllers
│ ├─ middlewares/ # Custom middlewares
│ ├─ models/ # Mongoose models
│ ├─ routes/ # API routes
│ ├─ server.js # Entry point
│ └─ package.json
├─ .gitignore
├─ README.md
├─ DEPLOYMENT_CHECKLIST.md
└─ VERCEL_DEPLOYMENT.md
🔧 Installation & Setup
Prerequisites
- Node.js (v16+)
- MongoDB Atlas account
- Cloudinary account
- Stripe account (test keys)
- Vercel account (optional, for deployment)
Backend Setup
-
cd server
- Install dependencies:
npm install
- Create a
.env file with the following variables:
MONGODB_URL=your‑mongodb‑connection‑string
JWT_SECRET=your‑secret
SELLER_EMAIL=admin@greencart.com
SELLER_PASSWORD=your‑password
CLOUDINARY_CLOUD_NAME=your‑cloud‑name
CLOUDINARY_API_KEY=your‑api‑key
CLOUDINARY_API_SECRET=your‑api‑secret
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
FRONTEND_URL=http://localhost:5173
PORT=4000
- Start the server:
npm run server
API will be available at http://localhost:4000.
Frontend Setup
-
cd client
- Install dependencies:
npm install
- Create a
.env file:
VITE_BACKEND_URL=http://localhost:4000
VITE_CURRENCY=₹
- Start the development server:
npm run dev
Open http://localhost:5173 in your browser.
🚀 Running the Application
- Start the backend (
cd server && npm run server).
- Start the frontend (
cd client && npm run dev).
- Visit
http://localhost:5173.
🔐 Authentication
- Default Seller Login:
- Email:
admin@gmail.com
- Password:
admin123
📡 API Endpoints (Quick Reference)
| Category | Endpoint | Method |
|---|
| User | /api/user/register | POST |
| /api/user/login | POST |
| /api/user/is-auth | GET |
| /api/user/logout | POST |
| Seller | /api/seller/login | POST |
| /api/seller/is-auth | GET |
| Product | /api/product/list | GET |
| /api/product/add | POST |
| /api/product/update | POST |
| /api/product/remove | POST |
| Cart | /api/cart/add | POST |
| /api/cart/update | POST |
| /api/cart/get | GET |
| Address | /api/address/add | POST |
| /api/address/get | GET |
| /api/address/update | POST |
| /api/address/remove | POST |
| Order | /api/order/place | POST |
| /api/order/userorders | GET |
| /api/order/list | GET |
| /api/order/status | POST |
🚀 Deployment (Vercel)
- Deploy backend:
cd server
vercel
- Deploy frontend:
cd client
vercel
- Add the environment variables in the Vercel dashboard for both projects.
🧪 Testing
Manual Checklist
API Testing (cURL)
curl http://localhost:4000/ # health check
curl http://localhost:4000/api/product/list
🤝 Contributing
- Fork the repo
- Create a branch (
git checkout -b feature/awesome‑feature)
- Commit your changes (
git commit -m "Add awesome feature")
- Push (
git push origin feature/awesome‑feature)
- Open a Pull Request
📞 Support
Open an issue on the GitHub repository for any questions.
Email - a70064182@gmail.com
My WhatsApp Phone no - 9619111051
🔄 Future Enhancements
- Product reviews & ratings
- Wishlist functionality
- Advanced search & filtering
- Inventory management
- Email notifications
- Mobile app development
- Multi‑language support
- Analytics dashboard
Happy Shopping with GreenCart! �
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
🛒 Welcome to Fusion Electronics - a sample full-stack, lightweight, and modern online e-commerce application, built with the MERN (MongoDB, Express, React, Node.js) stack! Also features a product recommendation service using vector search, FAISS, and the Weaviate/Pinecone vector DB!
83/100 healthRecently updatedActive repositoryHas homepage
JavaScriptMIT#ecommerce#ecommerce-application#ecommerce-website#express
⑂ 61 forks◯ 4 issuesUpdated today
Project homepage ↗🛒Modern Ecommerce Template A clean, fully responsive storefront built with HTML5, CSS3, and Vanilla JavaScript. It features a product grid, filters, shopping cart animations & product detail modal — ideal as a solid starting point for online shop projects or front-end showcases.
52/100 healthActive repositoryHas homepage
JavaScriptNo license#abolfazl-shadrouh#css-animations#demo#ecommerce