Skip to content

agamjotsingh18/trendhora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Trendhora πŸ›οΈ

A Modern Full-Stack E-commerce Platform

Trendhora Logo
Typing SVG

MIT License Contributors Stars Forks

Welcome to Trendhora – your gateway to a seamless online shopping experience built with the MERN stack.
Explore the Live Demo Β»

Report Bug β€’ Request Feature

🎯Vision

Make Trendhora the go‑to modern e‑commerce platform that delivers fast, secure, and delightful shopping experiences while enabling maintainable, extensible code for teams and contributors.

  • Delight customers with a smooth, responsive UI and fast checkout.
  • Empower admins with simple tools for catalog, order, and user management.
  • Maintain a scalable, testable MERN codebase that’s easy to extend and deploy.

🌟GSSoc 2025

GSSoC Logo

🌟 Exciting News...

πŸš€ This project is now an official part of GirlScript Summer of Code – GSSoC'25! πŸ’» We're thrilled to welcome contributors from all over India and beyond to collaborate, build, and grow trendhora! Let’s make learning and career development smarter – together! 🌟

GSSoC is one of India’s largest 3-month-long open-source programs that encourages developers of all levels to contribute to real-world projects while learning, collaborating, and growing together.

🌈 With mentorship, community support, and collaborative coding, it's the perfect platform for developers to:

  • ✨ Improve their skills
  • 🀝 Contribute to impactful projects
  • πŸ† Get recognized for their work
  • πŸ“œ Receive certificates and swag!

πŸŽ‰ I can’t wait to welcome new contributors from GSSoC 2025 to this trendhora project family! Let's build, learn, and grow together β€” one commit at a time.

πŸŽƒ Hacktoberfest 2025

Hacktoberfest Logo

πŸŽ‰ Hacktoberfest is here!
We’re thrilled to announce that this project is also participating in Hacktoberfest 2025 β€” a month-long celebration of open-source software organized by DigitalOcean, GitHub, and other amazing communities!

πŸ’» Whether you're a beginner or an experienced developer, this is your chance to:

  • 🌱 Learn and grow through real-world contributions
  • 🀝 Collaborate with developers across the globe
  • 🧠 Sharpen your coding and problem-solving skills
  • πŸ… Earn exclusive Hacktoberfest swag and certificates!

πŸ”₯ Contribute today and become a part of this global open-source movement. Every meaningful PR counts!
Let’s code, learn, and celebrate open source together β€” one pull request at a time! πŸ’ͺ

🌟 Why Trendhora?

Trendhora combines a polished front-end experience with a robust Node/Mongo back end to help small teams ship a production-ready marketplace quickly.

  • For buyers: fast browsing, intuitive product discovery, responsive UI, and smooth checkout flow.
  • For admins: easy product management, order tracking, and role-based controls.
  • For teams: standard MERN architecture, clear project structure, seed data for quick testing, and ready-to-deploy scripts.

🌟 Features

πŸ‘€ For Buyers

  • πŸ›’ Explore & Shop - Browse through an extensive range of products across various categories
  • πŸ“± User-Friendly Interface - Enjoy a smooth shopping experience with an intuitive and responsive design

πŸ”§ For Admins

  • πŸ› οΈ Manage Marketplace - Effortlessly control and update product listings

  • πŸ‘₯ Customer Account Management - Handle customer accounts and ensure smooth operation of the marketplace

  • βž• Dynamic Item Creation - Create new products with comprehensive details including images, pricing, stock management, and multiple size options through an intuitive admin dashboard

πŸ› οΈ Tech Stack

Frontend Backend Database
React Node.js MongoDB
Material-UI Express.js Mongoose

πŸ” Project Flowchart

Untitled diagram _ Mermaid Chart-2025-10-05-045453

πŸš€ Quick Start

Prerequisites

Make sure you have these installed on your machine:

node --version    # v16.0.0 or higher
npm --version     # v8.0.0 or higher

Installation & Setup

  1. Clone the repository

    git clone https://github.com/agamjotsingh18/trendhora.git
    cd trendhora
  2. Install dependencies

    # Install server dependencies
    cd server
    npm install
    
    # Install client dependencies  
    cd ../client
    npm install
  3. Environment Configuration

    Create a .env file in the server directory:

    NODE_ENV=development
    PORT=5000
    MONGO_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/<database>
  4. Database Setup

    # Navigate to server directory
    cd server
    
    # Seed the database with sample data
    npm run seed
  5. Start the Application

    # Terminal 1: Start the backend server
    cd server
    npm run dev
    
    # Terminal 2: Start the frontend (in a new terminal)
    cd client  
    npm start
  6. Access the Application

πŸ“ Project Structure

trendhora/
β”œβ”€β”€ client/                 # React frontend
β”‚   β”œβ”€β”€ public/            # Public assets
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # Reusable components
β”‚   β”‚   β”œβ”€β”€ pages/         # Page components
β”‚   β”‚   β”œβ”€β”€ context/       # Context providers
β”‚   β”‚   β”œβ”€β”€ hooks/         # Custom hooks
β”‚   β”‚   └── utils/         # Helper functions
β”‚   └── package.json
β”œβ”€β”€ server/                # Express backend
β”‚   β”œβ”€β”€ controllers/       # Route controllers
β”‚   β”œβ”€β”€ models/           # Mongoose models
β”‚   β”œβ”€β”€ routes/           # API routes
β”‚   β”œβ”€β”€ middleware/       # Custom middleware
β”‚   β”œβ”€β”€ config/           # Database config
β”‚   └── package.json
β”œβ”€β”€ README.md
└── LICENSE

πŸ”§ Available Scripts

Client

npm start          # Start development server
npm run build      # Build for production
npm test           # Run tests
npm run eject      # Eject from Create React App

Server

npm run dev        # Start with nodemon
npm start          # Start production server
npm run seed       # Populate database with sample data
npm test           # Run tests

πŸ“± Screenshots

Screenshot 45 Dark Mode Shop Section

🀝 Contributing

We love contributions! Please see our Contributing Guidelines for details.

How to Contribute

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contributors

πŸ› Bug Reports & Feature Requests

Found a bug or have a feature request? Please check our Issues page.

πŸ› οΈ Troubleshooting (quickfix)

  • Server won't start: check server/.env (PORT, MONGO_URI) and run cd server && npm install && npm run dev.
  • MongoDB errors: verify MONGO_URI, Atlas IP whitelist, or test with MongoDB Compass.
  • Frontend CORS / 404s: ensure client runs (npm start) and backend allows client origin or use a dev proxy.
  • Port conflict (Windows): find PID netstat -ano | findstr :3000 then taskkill /PID <pid> /F.
  • Seed or build fails: inspect terminal error, reinstall deps (npm ci) and retry seed/build.
  • Still stuck: collect frontend console logs, backend logs, exact error and open an issue with steps and screenshots.

License

This project is licensed under the MIT License.
You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the project.

For full details, see the LICENSE file.

πŸ™ Acknowledgments

  • Material-UI for the beautiful component library
  • MongoDB for the flexible database solution
  • The open-source community for inspiration and support

πŸ“§ Connect With Us

Project Maintainer: Agamjot Singh

LinkedIn Twitter GitHub

⭐ If this project helped you, please give it a star!




Made with ❀️ by developers, for developers

About

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 59