Skip to content

satyapatil314/project_3-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation


🛒 E-Commerce Website

An eCommerce website built using React.js on the frontend and designed to provide a seamless online shopping experience. The platform includes features such as product browsing, shopping cart management, user authentication, and order processing.

🚀 Live Demo

Live Demo Link

📖 Table of Contents

✨ Features

  • Responsive UI: Optimized for both mobile and desktop devices.
  • Product Browsing: View a wide range of products with filtering and sorting.
  • Shopping Cart: Add products to the cart, manage quantity, and view total price.
  • User Authentication: Sign-up and login for users (JWT-based authentication).
  • Search Functionality: Find products by category, name, or price.
  • Order Management: Review past orders and current purchases.
  • Payment Gateway Integration: Secure online payments (e.g., Stripe, PayPal).
  • Admin Dashboard: Manage products, categories, and track orders.

🛠 Tech Stack

  • Frontend: React.js, Redux, CSS3, HTML5, Axios
  • Backend: Node.js, Express.js
  • Database: MongoDB (NoSQL database)
  • Authentication: JWT (JSON Web Tokens)
  • Deployment: Vercel/Netlify for frontend, Heroku for backend
  • Payment Gateway: Stripe/PayPal API for handling payments

🚧 Installation

Prerequisites

  • Node.js
  • MongoDB (Local or Atlas)

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/ecommerce-website.git
    cd ecommerce-website
  2. Install dependencies:

    npm install
    cd client
    npm install
  3. Configure environment variables:

    Create a .env file in the root directory and add the following:

    PORT=5000
    MONGO_URI=your_mongo_database_uri
    JWT_SECRET=your_jwt_secret
    STRIPE_SECRET_KEY=your_stripe_secret_key
  4. Start the server:

    npm run dev

    This will start both the frontend and backend concurrently using concurrently.

Running on Separate Servers

If you want to run frontend and backend on separate servers:

  • Start the backend server:
    npm start
  • Start the frontend server:
    cd client
    npm start

🎮 Usage

  1. Browse products and add them to the cart.
  2. Register or log in to make a purchase.
  3. Checkout and pay using the integrated payment system.
  4. View order history in your profile.

📸 Screenshots

Homepage Homepage: Browse and search for products.

Cart Shopping Cart: Manage your items.

🤝 Contributing

Contributions are welcome! Follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Commit your changes: git commit -m 'Add your message'
  4. Push to the branch: git push origin feature/your-feature-name
  5. Open a Pull Request.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.4%
  • CSS 39.6%