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.
- π 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.
- π¦ 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.
- βοΈ React.js
- π¨ CSS/SCSS, Material-UI
- π© Node.js
- π OAuth2, JWT Authentication
- π MongoDB (NoSQL)
- β Node.js & npm
- β MongoDB (local/cloud)
- β Git
- Clone the Repository
git clone https://github.com/vanshh13/GreenCart.git
- Navigate to the Project Directory:
cd GreenCart - Install Dependencies:
npm install
- 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=
- Start the Development Server:
npm start The application will be accessible at http://localhost:3000.
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
- 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)













