Skip to content

dhruvmohan867/Ecommerce-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

96 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ E-commerce Website

License: MIT React Node.js MongoDB

An elegant and modern e-commerce platform built with React.js & Node.js.
This application allows users to register, sign in, browse products, add to cart, and prepare for checkout.

It’s modular, responsive, and extendable, making it ideal for learning, portfolio showcase, or real-world use.


πŸ“‘ Table of Contents


πŸ“Έ Screenshots

Home Page Product Page Login Page Cart Page


πŸš€ Features

  • πŸ” User Authentication (Sign Up & Sign In)
  • πŸ›οΈ Product Listing & Details Pages
  • 🧭 Intuitive Navigation Bar
  • 🎨 Responsive UI with reusable React components
  • βš™οΈ Redux Toolkit for State Management
  • πŸ–ΌοΈ Static Assets & Theming
  • πŸ“¦ Backend-ready with Express & MongoDB models

πŸ“ Project Structure

Ecommerce-Website-main/
β”œβ”€β”€ client/                     # Frontend (React.js)
β”‚   β”œβ”€β”€ public/                 # Static assets (favicon, logos, manifest)
β”‚   └── src/
β”‚       β”œβ”€β”€ api/                # API integration files
β”‚       β”œβ”€β”€ components/         # Reusable UI components
β”‚       β”‚   └── cards/          # Product-related UI cards
β”‚       β”œβ”€β”€ pages/              # Page components (Home, Cart, Auth, etc.)
β”‚       β”œβ”€β”€ redux/              # Redux store & slices
β”‚       β”‚   └── reducers/       # Reducer files
β”‚       β”œβ”€β”€ utils/              # Utility functions & constants
β”‚       β”‚   └── Images/         # Project images
β”‚       β”œβ”€β”€ App.js              # Root App component
β”‚       β”œβ”€β”€ index.css           # Global styles
β”‚       └── index.js            # React entry point
β”‚   β”œβ”€β”€ README.md
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ package-lock.json
β”‚   └── static.json
β”‚
β”œβ”€β”€ server/                     # Backend (Node.js / Express)
β”‚   β”œβ”€β”€ controllers/            # Business logic (Products, User)
β”‚   β”œβ”€β”€ middleware/             # Auth & token validation
β”‚   β”œβ”€β”€ models/                 # MongoDB models (Orders, Products, Users)
β”‚   β”œβ”€β”€ routes/                 # API routes
β”‚   β”œβ”€β”€ error.js                # Error handling
β”‚   β”œβ”€β”€ index.js                # Express app entry point
β”‚   β”œβ”€β”€ package.json
β”‚   └── package-lock.json
β”‚
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ image.png                   # Preview image / screenshot

πŸ› οΈ Tech Stack

  • Frontend:
    • βš›οΈ React.js
    • πŸ“¦ Redux Toolkit
    • 🎨 CSS (Responsive Design)
  • Backend:
    • 🟒 Node.js
    • 🚏 Express.js
    • πŸƒ MongoDB (via Mongoose models included)
  • Others:
    • 🌐 Axios (API calls)
    • πŸ”‘ JWT (token-based authentication placeholder)

⚑ Prerequisites

  • Make sure you have installed:
    • Node.js(>= 14.x recommended)
    • npm or yarn package manager

πŸ§‘β€πŸ’» How to Run Locally

  1. Clone the repository:

    git clone https://github.com/your-username/ecommerce-website.git
    cd ecommerce-website

Setup client (frontend):

  npm install
  npm start

Visit http://localhost:3000 to view the app.

Setup server (backend):

 cd ../server
 npm install
 npm start

Runs on: http://localhost:5000


🀝 Contributing

  • Contributions are welcome! πŸš€
  • To contribute:
    • Fork This Repo
    • Create Your Feature Branch
     git checkout -b feature/awesome-feature
    • Commit Your Changes
    git commit -m 'Add new feature'
    
  • Push To Your Branch & Open a Pull Request

🧾 License

This project is open-source and available under the MIT LICENSE.


⭐ Support

If you like this project, don’t forget to star ⭐ the repository to show your support!

About

πŸ›’ A modern e-commerce platform built with React.js, featuring authentication, product listings, and reusable UI components. Responsive and backend-ready.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors