Welcome to Trendhora β your gateway to a seamless online shopping experience built with the MERN stack.
- π 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
- π οΈ Manage Marketplace - Effortlessly control and update product listings
- π₯ Customer Account Management - Handle customer accounts and ensure smooth operation of the marketplace
Make sure you have these installed on your machine:
node --version # v16.0.0 or higher
npm --version # v8.0.0 or higher-
Clone the repository
git clone https://github.com/agamjotsingh18/trendhora.git cd trendhora -
Install dependencies
# Install server dependencies cd server npm install # Install client dependencies cd ../client npm install
-
Environment Configuration
Create a
.envfile in theserverdirectory:NODE_ENV=development PORT=5000 MONGO_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/<database>
-
Database Setup
# Navigate to server directory cd server # Seed the database with sample data npm run seed
-
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
-
Access the Application
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
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
npm start # Start development server
npm run build # Build for production
npm test # Run tests
npm run eject # Eject from Create React Appnpm run dev # Start with nodemon
npm start # Start production server
npm run seed # Populate database with sample data
npm test # Run testsWe love contributions! Please see our Contributing Guidelines for details.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Found a bug or have a feature request? Please check our Issues page.
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.
- Material-UI for the beautiful component library
- MongoDB for the flexible database solution
- The open-source community for inspiration and support
.png)

